#include "net/dns/dns_client.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/rand_util.h"
#include "base/test/task_environment.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
#include "net/dns/dns_config.h"
#include "net/dns/dns_session.h"
#include "net/dns/dns_test_util.h"
#include "net/dns/public/dns_over_https_config.h"
#include "net/dns/resolve_context.h"
#include "net/socket/socket_test_util.h"
#include "net/test/test_with_task_environment.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/scheme_host_port.h"
namespace net {
class ClientSocketFactory;
namespace {
class AlwaysFailSocketFactory : public MockClientSocketFactory { … };
class DnsClientTest : public TestWithTaskEnvironment { … };
TEST_F(DnsClientTest, NoConfig) { … }
TEST_F(DnsClientTest, InvalidConfig) { … }
TEST_F(DnsClientTest, CanUseSecureDnsTransactions_NoDohServers) { … }
TEST_F(DnsClientTest, InsecureNotEnabled) { … }
TEST_F(DnsClientTest, RespectsAdditionalTypesDisabled) { … }
TEST_F(DnsClientTest, UnhandledOptions) { … }
TEST_F(DnsClientTest, CanUseSecureDnsTransactions_ProbeSuccess) { … }
TEST_F(DnsClientTest, DnsOverTlsActive) { … }
TEST_F(DnsClientTest, AllAllowed) { … }
TEST_F(DnsClientTest, FallbackFromInsecureTransactionPreferred_Failures) { … }
TEST_F(DnsClientTest, GetPresetAddrs) { … }
TEST_F(DnsClientTest, Override) { … }
TEST_F(DnsClientTest, OverrideNoConfig) { … }
TEST_F(DnsClientTest, OverrideInvalidConfig) { … }
TEST_F(DnsClientTest, OverrideToInvalid) { … }
TEST_F(DnsClientTest, ReplaceCurrentSession) { … }
TEST_F(DnsClientTest, ReplaceCurrentSession_NoSession) { … }
}
}