#include "net/dns/public/dns_over_https_server_config.h"
#include <string>
#include <string_view>
#include "base/json/json_reader.h"
#include "net/base/ip_address.h"
#include "net/dns/public/dns_over_https_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
const IPAddress ip1(192, 0, 2, 1);
const IPAddress ip2(0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
const IPAddress ip3(192, 0, 2, 2);
const IPAddress ip4(0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2);
const DnsOverHttpsServerConfig::Endpoints endpoints{ … };
TEST(DnsOverHttpsServerConfigTest, ValidWithGet) { … }
TEST(DnsOverHttpsServerConfigTest, ValidWithPost) { … }
TEST(DnsOverHttpsServerConfigTest, Invalid) { … }
TEST(DnsOverHttpsServerConfigTest, Empty) { … }
TEST(DnsOverHttpsServerConfigTest, Simple) { … }
TEST(DnsOverHttpsServerConfigTest, ToValueSimple) { … }
TEST(DnsOverHttpsServerConfigTest, ToValueWithEndpoints) { … }
TEST(DnsOverHttpsServerConfigTest, FromValueSimple) { … }
TEST(DnsOverHttpsServerConfigTest, FromValueWithEndpoints) { … }
TEST(DnsOverHttpsServerConfigTest, FromValueWithUnknownKey) { … }
TEST(DnsOverHttpsServerConfigTest, FromValueInvalid) { … }
}
}