#include "base/command_line.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_features.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/shell/browser/shell.h"
#include "net/dns/mock_host_resolver.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/origin.h"
namespace content {
class WorkerRunningStatusObserver : public ServiceWorkerContextObserver { … };
class ServiceWorkerProcessBrowserTest
: public ContentBrowserTest,
public ::testing::WithParamInterface<bool> { … };
#if BUILDFLAG(IS_ANDROID) || \
((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \
defined(THREAD_SANITIZER))
#define MAYBE_ServiceWorkerAndPageShareProcess …
#else
#define MAYBE_ServiceWorkerAndPageShareProcess …
#endif
IN_PROC_BROWSER_TEST_P(ServiceWorkerProcessBrowserTest,
MAYBE_ServiceWorkerAndPageShareProcess) { … }
IN_PROC_BROWSER_TEST_P(ServiceWorkerProcessBrowserTest,
NavigateFromUnassignedSiteInstance) { … }
INSTANTIATE_TEST_SUITE_P(…);
}