1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/dns/public/secure_dns_policy.h" 6 7 namespace net { 8 SecureDnsPolicyToDebugString(SecureDnsPolicy secure_dns_policy)9const char* SecureDnsPolicyToDebugString(SecureDnsPolicy secure_dns_policy) { 10 switch (secure_dns_policy) { 11 case SecureDnsPolicy::kAllow: 12 return "allow"; 13 case SecureDnsPolicy::kDisable: 14 return "disable"; 15 case SecureDnsPolicy::kBootstrap: 16 return "bootstrap"; 17 } 18 } 19 20 } // namespace net 21