#include "services/network/proxy_service_mojo.h"
#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "build/build_config.h"
#include "net/base/completion_once_callback.h"
#include "net/base/network_delegate_impl.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.h"
#include "net/log/net_log_event_type.h"
#include "net/log/net_log_with_source.h"
#include "net/log/test_net_log.h"
#include "net/log/test_net_log_util.h"
#include "net/proxy_resolution/configured_proxy_resolution_service.h"
#include "net/proxy_resolution/dhcp_pac_file_fetcher.h"
#include "net/proxy_resolution/mock_pac_file_fetcher.h"
#include "net/proxy_resolution/proxy_config_service_fixed.h"
#include "net/proxy_resolution/proxy_resolution_request.h"
#include "net/test/event_waiter.h"
#include "net/test/gtest_util.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/test_mojo_proxy_resolver_factory.h"
#include "services/proxy_resolver/public/mojom/proxy_resolver.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
IsOk;
namespace network {
namespace {
const char kPacUrl[] = …;
const char kSimplePacScript[] = …;
const char kDnsResolvePacScript[] = …;
const char kThrowingPacScript[] = …;
const char kThrowingOnLoadPacScript[] = …;
class TestNetworkDelegate : public net::NetworkDelegateImpl { … };
void TestNetworkDelegate::OnPACScriptError(int line_number,
const std::u16string& error) { … }
void CheckCapturedNetLogEntries(const std::vector<net::NetLogEntry>& entries) { … }
}
class ProxyServiceMojoTest : public testing::Test { … };
TEST_F(ProxyServiceMojoTest, Basic) { … }
TEST_F(ProxyServiceMojoTest, DnsResolution) { … }
TEST_F(ProxyServiceMojoTest, Error) { … }
TEST_F(ProxyServiceMojoTest, ErrorOnInitialization) { … }
}