#include "net/proxy_resolution/pac_file_fetcher_impl.h"
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "net/base/features.h"
#include "net/base/filename_util.h"
#include "net/base/load_flags.h"
#include "net/base/network_delegate_impl.h"
#include "net/base/test_completion_callback.h"
#include "net/cert/mock_cert_verifier.h"
#include "net/cert/multi_log_ct_verifier.h"
#include "net/disk_cache/disk_cache.h"
#include "net/dns/mock_host_resolver.h"
#include "net/http/http_cache.h"
#include "net/http/http_network_session.h"
#include "net/http/http_server_properties.h"
#include "net/http/http_transaction_factory.h"
#include "net/http/transport_security_state.h"
#include "net/net_buildflags.h"
#include "net/proxy_resolution/configured_proxy_resolution_service.h"
#include "net/quic/quic_context.h"
#include "net/socket/client_socket_pool_manager.h"
#include "net/socket/transport_client_socket_pool.h"
#include "net/ssl/ssl_config_service_defaults.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/simple_connection_listener.h"
#include "net/test/gtest_util.h"
#include "net/test/test_with_task_environment.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_job_factory.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 "testing/platform_test.h"
IsError;
IsOk;
ASCIIToUTF16;
namespace net {
namespace {
const base::FilePath::CharType kDocRoot[] = …);
struct FetchResult { … };
GURL GetTestFileUrl(const std::string& relpath) { … }
class BasicNetworkDelegate : public NetworkDelegateImpl { … };
class PacFileFetcherImplTest : public PlatformTest, public WithTaskEnvironment { … };
TEST_F(PacFileFetcherImplTest, FileUrlNotAllowed) { … }
TEST_F(PacFileFetcherImplTest, RedirectToFileUrl) { … }
TEST_F(PacFileFetcherImplTest, HttpMimeType) { … }
TEST_F(PacFileFetcherImplTest, HttpStatusCode) { … }
TEST_F(PacFileFetcherImplTest, ContentDisposition) { … }
TEST_F(PacFileFetcherImplTest, IsolationInfo) { … }
TEST_F(PacFileFetcherImplTest, NoCache) { … }
TEST_F(PacFileFetcherImplTest, TooLarge) { … }
TEST_F(PacFileFetcherImplTest, Empty) { … }
TEST_F(PacFileFetcherImplTest, Hang) { … }
TEST_F(PacFileFetcherImplTest, Encodings) { … }
TEST_F(PacFileFetcherImplTest, DataURLs) { … }
TEST_F(PacFileFetcherImplTest, IgnoresLimits) { … }
TEST_F(PacFileFetcherImplTest, OnShutdown) { … }
TEST_F(PacFileFetcherImplTest, OnShutdownWithNoLiveRequest) { … }
}
}