#include "chrome/test/chromedriver/net/net_util.h"
#include <memory>
#include <string>
#include <utility>
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_pump_type.h"
#include "base/strings/stringprintf.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "chrome/test/chromedriver/net/url_request_context_getter.h"
#include "mojo/core/embedder/embedder.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/log/net_log_source.h"
#include "net/server/http_server.h"
#include "net/server/http_server_request_info.h"
#include "net/socket/tcp_server_socket.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_context_getter.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/transitional_url_loader_factory_owner.h"
#include "services/network/url_loader.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class FetchUrlTest : public testing::Test,
public net::HttpServer::Delegate { … };
}
#if !defined(THREAD_SANITIZER)
TEST_F(FetchUrlTest, Http200) { … }
#endif
#if !defined(THREAD_SANITIZER)
TEST_F(FetchUrlTest, HttpNon200) { … }
#endif
#if !defined(THREAD_SANITIZER)
TEST_F(FetchUrlTest, ConnectionClose) { … }
#endif
#if !defined(THREAD_SANITIZER)
TEST_F(FetchUrlTest, NoServer) { … }
#endif