chromium/services/proxy_resolver/host_resolver_mojo_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/proxy_resolver/host_resolver_mojo.h"

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/functional/bind.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/base/ip_address.h"
#include "net/base/net_errors.h"
#include "net/base/network_anonymization_key.h"
#include "net/base/request_priority.h"
#include "net/base/test_completion_callback.h"
#include "net/log/net_log_with_source.h"
#include "net/test/event_waiter.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 proxy_resolver {
namespace {

void Fail(int result) {}

class MockMojoHostResolverRequest {};

struct HostResolverAction {};

class MockMojoHostResolver : public HostResolverMojo::Impl {};

}  // namespace

class HostResolverMojoTest : public testing::Test {};

TEST_F(HostResolverMojoTest, Basic) {}

TEST_F(HostResolverMojoTest, ResolveCachedResult) {}

// Make sure the cache indexes entries by NetworkAnonymizationKey.
TEST_F(HostResolverMojoTest, ResolveCachedResultWithNetworkAnonymizationKey) {}

TEST_F(HostResolverMojoTest, Multiple) {}

TEST_F(HostResolverMojoTest, Error) {}

TEST_F(HostResolverMojoTest, EmptyResult) {}

TEST_F(HostResolverMojoTest, Cancel) {}

TEST_F(HostResolverMojoTest, ImplDropsClientConnection) {}

}  // namespace proxy_resolver