#include "net/dns/mapped_host_resolver.h"
#include <memory>
#include <optional>
#include <utility>
#include "base/test/task_environment.h"
#include "net/base/address_list.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/base/network_isolation_key.h"
#include "net/base/test_completion_callback.h"
#include "net/dns/mock_host_resolver.h"
#include "net/log/net_log_with_source.h"
#include "net/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/scheme_host_port.h"
#include "url/url_constants.h"
IsError;
IsOk;
namespace net {
namespace {
std::string FirstAddress(const AddressList& address_list) { … }
TEST(MappedHostResolverTest, Inclusion) { … }
TEST(MappedHostResolverTest, MapsHostWithScheme) { … }
TEST(MappedHostResolverTest, MapsHostWithSchemeToIpLiteral) { … }
TEST(MappedHostResolverTest, MapsHostWithSchemeToNonCanon) { … }
TEST(MappedHostResolverTest, MapsHostWithSchemeToNameWithPort) { … }
TEST(MappedHostResolverTest, HandlesUnmappedHostWithScheme) { … }
TEST(MappedHostResolverTest, Exclusion) { … }
TEST(MappedHostResolverTest, SetRulesFromString) { … }
TEST(MappedHostResolverTest, ParseInvalidRules) { … }
TEST(MappedHostResolverTest, MapToError) { … }
TEST(MappedHostResolverTest, MapHostWithSchemeToError) { … }
}
}