#include "content/public/test/url_loader_interceptor.h"
#include "base/command_line.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_content_browser_client.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_utils.h"
#include "content/shell/browser/shell.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/system/data_pipe_utils.h"
#include "net/base/filename_util.h"
#include "net/base/isolation_info.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/metrics/public/cpp/ukm_source_id.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/test/test_url_loader_client.h"
namespace content {
namespace {
class URLLoaderInterceptorTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, MonitorFrame) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, InterceptFrame) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, InterceptFrameWithFileScheme) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest,
AsynchronousInitializationInterceptFrame) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest,
AsynchronousDestructionIsAppliedImmediately) { … }
class TestBrowserClientWithHeaderClient
: public ContentBrowserTestContentBrowserClient,
public network::mojom::TrustedURLLoaderHeaderClient { … };
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest,
InterceptFrameWithHeaderClient) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, MonitorSubresource) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, InterceptSubresource) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, InterceptBrowser) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, WriteResponse) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, WriteResponseFromFile1) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, WriteResponseFromFile2) { … }
IN_PROC_BROWSER_TEST_F(URLLoaderInterceptorTest, WriteResponseFromFile3) { … }
}
}