#include "content/browser/storage_partition_impl.h"
#include <string>
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/client_certificate_delegate.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_client.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_content_browser_client.h"
#include "content/public/test/simple_url_loader_test_helper.h"
#include "content/public/test/url_loader_interceptor.h"
#include "content/shell/browser/shell.h"
#include "content/shell/browser/shell_browser_context.h"
#include "content/test/io_thread_shared_url_loader_factory_owner.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
#include "net/ssl/client_cert_identity.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/public/mojom/network_service.mojom.h"
#include "services/network/public/mojom/url_loader.mojom.h"
#include "services/network/public/mojom/url_loader_factory.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "services/network/test/test_url_loader_client.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace content {
namespace {
class StoragePartitionImplBrowsertest : public ContentBrowserTest { … };
class ClientCertBrowserClient : public ContentBrowserTestContentBrowserClient { … };
class ClientCertBrowserTest : public ContentBrowserTest { … };
std::unique_ptr<network::SimpleURLLoader> DownloadUrl(
const GURL& url,
StoragePartition* partition) { … }
void CheckSimpleURLLoaderState(network::SimpleURLLoader* url_loader,
int net_error,
net::HttpStatusCode http_status_code) { … }
}
IN_PROC_BROWSER_TEST_F(StoragePartitionImplBrowsertest, NetworkContext) { … }
IN_PROC_BROWSER_TEST_F(StoragePartitionImplBrowsertest,
GetURLLoaderFactoryForBrowserProcessIOThread) { … }
IN_PROC_BROWSER_TEST_F(StoragePartitionImplBrowsertest,
BrowserIOPendingFactoryAfterStoragePartitionGone) { … }
IN_PROC_BROWSER_TEST_F(StoragePartitionImplBrowsertest,
BrowserIOFactoryAfterStoragePartitionGone) { … }
IN_PROC_BROWSER_TEST_F(StoragePartitionImplBrowsertest, URLLoaderInterceptor) { … }
IN_PROC_BROWSER_TEST_F(ClientCertBrowserTest,
InvokeClientCertCancellationCallback) { … }
}