#include "chrome/test/chromedriver/net/net_util.h"
#include <memory>
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/lazy_instance.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "url/gurl.h"
namespace {
base::LazyInstance<scoped_refptr<base::SequencedTaskRunner>>::Leaky
g_io_capable_task_runner_for_tests = …;
class SyncUrlFetcher { … };
}
NetAddress::NetAddress() : … { … }
NetAddress::NetAddress(int port) : … { … }
NetAddress::NetAddress(const std::string& host, int port)
: … { … }
NetAddress::~NetAddress() { … }
bool NetAddress::IsValid() const { … }
std::string NetAddress::ToString() const { … }
const std::string& NetAddress::host() const { … }
int NetAddress::port() const { … }
void SetIOCapableTaskRunnerForTest(
scoped_refptr<base::SequencedTaskRunner> task_runner) { … }
bool FetchUrl(const std::string& url,
network::mojom::URLLoaderFactory* factory,
std::string* response) { … }
bool FetchUrl(const GURL& url,
network::mojom::URLLoaderFactory* factory,
std::string* response) { … }