#include "services/network/mojo_host_resolver_impl.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "net/base/address_family.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/dns/mock_host_resolver.h"
#include "net/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
IsError;
IsOk;
namespace network {
namespace {
class TestRequestClient
: public proxy_resolver::mojom::HostResolverRequestClient { … };
void TestRequestClient::WaitForResult() { … }
void TestRequestClient::WaitForConnectionError() { … }
void TestRequestClient::ReportResult(
int32_t error,
const std::vector<net::IPAddress>& results) { … }
void TestRequestClient::OnMojoDisconnect() { … }
}
class MojoHostResolverImplTest : public testing::Test { … };
TEST_F(MojoHostResolverImplTest, Resolve) { … }
TEST_F(MojoHostResolverImplTest, ResolveSynchronous) { … }
TEST_F(MojoHostResolverImplTest, ResolveMultiple) { … }
TEST_F(MojoHostResolverImplTest, ResolveDuplicate) { … }
TEST_F(MojoHostResolverImplTest, ResolveFailure) { … }
TEST_F(MojoHostResolverImplTest, ResolveEx) { … }
TEST_F(MojoHostResolverImplTest, NetworkAnonymizationKeyUsed) { … }
TEST_F(MojoHostResolverImplTest, DestroyClient) { … }
}