#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <stddef.h>
#include <deque>
#include <memory>
#include <optional>
#include "base/cancelable_callback.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/metrics/user_action_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread_restrictions.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/devtools/device/tcp_device_provider.h"
#include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/devtools/devtools_window_testing.h"
#include "chrome/browser/devtools/protocol/browser_handler.h"
#include "chrome/browser/extensions/api/developer_private/developer_private_api.h"
#include "chrome/browser/extensions/chrome_extension_test_notification_observer.h"
#include "chrome/browser/extensions/component_loader.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extension_management_constants.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/extensions/unpacked_installer.h"
#include "chrome/browser/lifetime/application_lifetime_desktop.h"
#include "chrome/browser/lifetime/browser_shutdown.h"
#include "chrome/browser/policy/chrome_browser_policy_connector.h"
#include "chrome/browser/policy/developer_tools_policy_handler.h"
#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/sync/test/integration/sync_service_impl_harness.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller_impl_test_api.h"
#include "chrome/browser/ui/autofill/autofill_suggestion_controller.h"
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/extensions/extension_side_panel_test_utils.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/test_chrome_web_ui_controller_factory.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/core/browser/autofill_experiments.h"
#include "components/autofill/core/browser/browser_autofill_manager.h"
#include "components/autofill/core/browser/browser_autofill_manager_test_delegate.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/infobars/content/content_infobar_manager.h"
#include "components/infobars/core/infobar.h"
#include "components/infobars/core/infobar_delegate.h"
#include "components/javascript_dialogs/app_modal_dialog_controller.h"
#include "components/javascript_dialogs/app_modal_dialog_view.h"
#include "components/keep_alive_registry/keep_alive_registry.h"
#include "components/keep_alive_registry/keep_alive_types.h"
#include "components/language/core/browser/pref_names.h"
#include "components/policy/core/common/mock_configuration_policy_provider.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_service.h"
#include "components/search_engines/template_url_service.h"
#include "components/signin/public/identity_manager/account_capabilities_test_mutator.h"
#include "components/signin/public/identity_manager/identity_test_utils.h"
#include "components/ukm/test_ukm_recorder.h"
#include "components/variations/service/variations_service.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/url_data_source.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/hit_test_region_observer.h"
#include "content/public/test/scoped_web_ui_controller_factory_registration.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/public/test/test_utils.h"
#include "content/public/test/url_loader_interceptor.h"
#include "extensions/browser/api_test_utils.h"
#include "extensions/browser/extension_host_test_helper.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_registry_observer.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/offscreen_document_host.h"
#include "extensions/browser/service_worker/service_worker_test_utils.h"
#include "extensions/browser/test_extension_registry_observer.h"
#include "extensions/common/extension_features.h"
#include "extensions/common/manifest.h"
#include "extensions/common/mojom/view_type.mojom.h"
#include "extensions/common/switches.h"
#include "extensions/test/extension_test_message_listener.h"
#include "extensions/test/test_extension_dir.h"
#include "mojo/public/cpp/bindings/sync_call_restrictions.h"
#include "net/base/filename_util.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "third_party/blink/public/common/chrome_debug_urls.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "ui/base/ui_base_switches.h"
#include "ui/compositor/compositor_switches.h"
#include "ui/gl/gl_switches.h"
#include "url/gurl.h"
DevToolsAgentHost;
DevToolsAgentHostObserver;
NavigationController;
RenderFrameHost;
WebContents;
Extension;
AppModalDialogView;
namespace {
const char kDebuggerTestPage[] = …;
const char kPauseWhenLoadingDevTools[] = …;
const char kPageWithContentScript[] = …;
const char kNavigateBackTestPage[] = …;
const char kWindowOpenTestPage[] = …;
const char kLatencyInfoTestPage[] = …;
const char kChunkedTestPage[] = …;
const char kPushTestPage[] = …;
const char kPushTestResource[] = …;
const char kPushUseNullEndTime[] = …;
const char kSlowTestPage[] = …;
const char kSharedWorkerTestPage[] = …;
const char kSharedWorkerTestWorker[] = …;
const char kReloadSharedWorkerTestPage[] = …;
const char kReloadSharedWorkerTestWorker[] = …;
const char kEmulateNetworkConditionsPage[] = …;
const char kDispatchKeyEventShowsAutoFill[] = …;
const char kDOMWarningsTestPage[] = …;
const char kEmptyTestPage[] = …;
const char kArbitraryPage[] = …;
template <typename... T>
void DispatchOnTestSuiteSkipCheck(DevToolsWindow* window,
const char* method,
T... args) { … }
void LoadLegacyFilesInFrontend(DevToolsWindow* window) { … }
template <typename... T>
void DispatchOnTestSuite(DevToolsWindow* window,
const char* method,
T... args) { … }
void RunTestFunction(DevToolsWindow* window, const char* test_name) { … }
void SwitchToPanel(DevToolsWindow* window, const char* panel) { … }
void SwitchToExtensionPanel(DevToolsWindow* window,
const Extension* devtools_extension,
const char* panel_name) { … }
void DisallowDevToolsForForceInstalledExtenions(Browser* browser) { … }
void DisallowDevTools(Browser* browser) { … }
void AllowDevTools(Browser* browser) { … }
scoped_refptr<DevToolsAgentHost> GetOrCreateDevToolsHostForWebContents(
WebContents* wc) { … }
}
class DevToolsTest : public InProcessBrowserTest { … };
class SitePerProcessDevToolsTest : public DevToolsTest { … };
class DevToolsWindowBeforeUnloadObserver : public content::WebContentsObserver { … };
DevToolsWindowBeforeUnloadObserver::DevToolsWindowBeforeUnloadObserver(
DevToolsWindow* devtools_window)
: … { … }
void DevToolsWindowBeforeUnloadObserver::Wait() { … }
void DevToolsWindowBeforeUnloadObserver::BeforeUnloadFired(bool proceed) { … }
class DevToolsBeforeUnloadTest : public DevToolsTest { … };
constexpr char kPublicKey[] = …;
class DevToolsExtensionTest : public DevToolsTest { … };
class DevToolsExperimentalExtensionTest : public DevToolsExtensionTest { … };
class DevToolsServiceWorkerExtensionTest : public InProcessBrowserTest { … };
#if defined(LEAK_SANITIZER) && BUILDFLAG(IS_LINUX)
#define MAYBE_AttachOnReload …
#else
#define MAYBE_AttachOnReload …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsServiceWorkerExtensionTest,
MAYBE_AttachOnReload) { … }
class WorkerDevToolsTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest, TestDockedDevToolsClose) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_TestDockedDevToolsInspectedTabClose …
#else
#define MAYBE_TestDockedDevToolsInspectedTabClose …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
MAYBE_TestDockedDevToolsInspectedTabClose) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
TestDockedDevToolsInspectedBrowserClose) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest, TestUndockedDevToolsClose) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
TestUndockedDevToolsInspectedTabClose) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
TestUndockedDevToolsInspectedBrowserClose) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
TestUndockedDevToolsApplicationClose) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
DISABLED_TestUndockedDevToolsUnresponsive) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
DISABLED_TestWorkerWindowClosing) { … }
IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest,
DISABLED_TestDevToolsOnDevTools) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestShowScriptsTab) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestShowRecorderTab) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, TestDevToolsExtensionAPI) { … }
class DevtoolsPanelForceUpdateTest : public DevToolsExtensionTest,
public testing::WithParamInterface<bool> { … };
IN_PROC_BROWSER_TEST_P(DevtoolsPanelForceUpdateTest, NavigateToDevtoolsPanel) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
HttpIframeInDevToolsExtensionPanel) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_HttpIframeInDevToolsExtensionSideBarPane …
#else
#define MAYBE_HttpIframeInDevToolsExtensionSideBarPane …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
MAYBE_HttpIframeInDevToolsExtensionSideBarPane) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
HttpIframeInDevToolsExtensionDevtools) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
DISABLED_NonDevToolsExtensionInDevToolsExtension) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
DevToolsExtensionInDevToolsExtension) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, DevToolsExtensionInItself) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_DevtoolsInDevTools …
#else
#define MAYBE_DevtoolsInDevTools …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_DevtoolsInDevTools) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
DISABLED_DevToolsExtensionSecurityPolicyGrants) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_TestDevToolsExtensionMessaging …
#else
#define MAYBE_TestDevToolsExtensionMessaging …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
MAYBE_TestDevToolsExtensionMessaging) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExperimentalExtensionTest,
TestDevToolsExperimentalExtensionAPI) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_TestContentScriptIsPresent …
#else
#define MAYBE_TestContentScriptIsPresent …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
MAYBE_TestContentScriptIsPresent) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
DISABLED_TestConsoleContextNames) { … }
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_CantInspectNewTabPage …
#else
#define MAYBE_CantInspectNewTabPage …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, MAYBE_CantInspectNewTabPage) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_CantInspectChromeScheme …
#else
#define MAYBE_CantInspectChromeScheme …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, MAYBE_CantInspectChromeScheme) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, CantInspectDevtoolsScheme) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
CantInspectViewSourceDevtoolsScheme) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, CantInspectComponentExtension) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, CantInspectRemoteNewTabPage) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
CantInspectViewSourceComponentExtension) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
DISABLED_CantInspectFileUrlWithoutFileAccess) { … }
class DevToolsExtensionSidePanelTest
: public DevToolsExtensionTest,
public ::testing::WithParamInterface<bool> { … };
IN_PROC_BROWSER_TEST_P(DevToolsExtensionSidePanelTest,
CanInspectExtensionSidePanelView) { … }
INSTANTIATE_TEST_SUITE_P(…);
#if BUILDFLAG(IS_LINUX)
#define MAYBE_CanInspectExtensionOffscreenDoc …
#else
#define MAYBE_CanInspectExtensionOffscreenDoc …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
MAYBE_CanInspectExtensionOffscreenDoc) { … }
class DevToolsExtensionFileAccessTest : public DevToolsExtensionTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsExtensionFileAccessTest,
CanGetFileResourceWithFileAccess) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionFileAccessTest,
CantGetFileResourceWithoutFileAccess) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionFileAccessTest,
CantGetFileResourceWithoutFileAccessNoSlashes) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionFileAccessTest,
CantGetFileResourceWithoutFileAccessMixedCase) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestNoScriptDuplicatesOnPanelSwitch) { … }
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_TestPauseWhenLoadingDevTools …
#else
#define MAYBE_TestPauseWhenLoadingDevTools …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_TestPauseWhenLoadingDevTools) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestNetworkTiming) { … }
#if BUILDFLAG(IS_LINUX) && !defined(NDEBUG)
#define MAYBE_TestNetworkSize …
#else
#define MAYBE_TestNetworkSize …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_TestNetworkSize) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestNetworkSyncSize) { … }
namespace {
bool InterceptURLLoad(content::URLLoaderInterceptor::RequestParams* params) { … }
}
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_TestNetworkPushTime) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_TestDOMWarnings …
#else
#define MAYBE_TestDOMWarnings …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_TestDOMWarnings) { … }
#if BUILDFLAG(IS_WIN) || defined(MEMORY_SANITIZER)
#define MAYBE_TestConsoleOnNavigateBack …
#else
#define MAYBE_TestConsoleOnNavigateBack …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_TestConsoleOnNavigateBack) { … }
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_TestDeviceEmulation …
#else
#define MAYBE_TestDeviceEmulation …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_TestDeviceEmulation) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestDispatchKeyEventDoesNotCrash) { … }
class BrowserAutofillManagerTestDelegateDevtoolsImpl
: public autofill::BrowserAutofillManagerTestDelegate { … };
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_TestDispatchKeyEventShowsAutoFill …
#else
#define MAYBE_TestDispatchKeyEventShowsAutoFill …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_TestDispatchKeyEventShowsAutoFill) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, testKeyEventUnhandled) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, testForwardedKeysChanged) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, testCloseActionRecorded) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_testShowCertificate …
#else
#define MAYBE_testShowCertificate …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_testShowCertificate) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestSettings) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestDevToolsExternalNavigation) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_TestToolboxLoadedUndocked) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_TestToolboxNotLoadedDocked) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_TestReattachAfterCrash) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestPageWithNoJavaScript) { … }
class DevToolsAutoOpenerTest : public DevToolsTest { … };
#if !defined(NDEBUG)
#define MAYBE_TestAutoOpenForTabs …
#elif BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_TestAutoOpenForTabs …
#else
#define MAYBE_TestAutoOpenForTabs …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsAutoOpenerTest, MAYBE_TestAutoOpenForTabs) { … }
class DevToolsReattachAfterCrashTest : public DevToolsTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsReattachAfterCrashTest,
DISABLED_TestReattachAfterCrashOnTimeline) { … }
IN_PROC_BROWSER_TEST_F(DevToolsReattachAfterCrashTest,
DISABLED_TestReattachAfterCrashOnNetwork) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_AutoAttachToWindowOpen …
#else
#define MAYBE_AutoAttachToWindowOpen …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_AutoAttachToWindowOpen) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_SecondTabAfterDevTools) { … }
IN_PROC_BROWSER_TEST_F(WorkerDevToolsTest, InspectSharedWorker) { … }
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
BUILDFLAG(IS_MAC)
#define MAYBE_PauseInSharedWorkerInitialization …
#else
#define MAYBE_PauseInSharedWorkerInitialization …
#endif
IN_PROC_BROWSER_TEST_F(WorkerDevToolsTest,
MAYBE_PauseInSharedWorkerInitialization) { … }
class DevToolsAgentHostTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsAgentHostTest, TestAgentHostReleased) { … }
class RemoteDebuggingTest : public extensions::ExtensionApiTest { … };
#if BUILDFLAG(IS_CHROMEOS_ASH)
#define MAYBE_RemoteDebugger …
#else
#define MAYBE_RemoteDebugger …
#endif
IN_PROC_BROWSER_TEST_F(RemoteDebuggingTest, MAYBE_RemoteDebugger) { … }
IN_PROC_BROWSER_TEST_F(RemoteDebuggingTest, DiscoveryPage) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, PolicyDisallowed) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, PolicyDisallowedCloseConnection) { … }
ManifestLocation;
class DevToolsDisallowedForForceInstalledExtensionsPolicyTest
: public extensions::ExtensionBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsDisallowedForForceInstalledExtensionsPolicyTest,
DisallowedForExternalPolicyDownloadExtension) { … }
IN_PROC_BROWSER_TEST_F(DevToolsDisallowedForForceInstalledExtensionsPolicyTest,
DisallowedForComponentExtensionForManagedUsers) { … }
IN_PROC_BROWSER_TEST_F(DevToolsDisallowedForForceInstalledExtensionsPolicyTest,
AllowedForComponentExtensionForNonManagedUsers) { … }
IN_PROC_BROWSER_TEST_F(DevToolsDisallowedForForceInstalledExtensionsPolicyTest,
ExtensionConnectionClosedOnPolicyChange) { … }
IN_PROC_BROWSER_TEST_F(DevToolsDisallowedForForceInstalledExtensionsPolicyTest,
ClosedAfterNavigationToExtension) { … }
IN_PROC_BROWSER_TEST_F(DevToolsDisallowedForForceInstalledExtensionsPolicyTest,
AboutBlankConnectionKeptOnPolicyChange) { … }
class DevToolsAllowedByCommandLineSwitch
: public DevToolsDisallowedForForceInstalledExtensionsPolicyTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsAllowedByCommandLineSwitch,
SwitchOverridesPolicyOnChromeOS) { … }
class DevToolsPixelOutputTests : public DevToolsTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsPixelOutputTests,
DISABLED_TestScreenshotRecording) { … }
IN_PROC_BROWSER_TEST_F(DevToolsPixelOutputTests,
DISABLED_TestLatencyInfoInstrumentation) { … }
class DevToolsNetInfoTest : public DevToolsTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsNetInfoTest, EmulateNetworkConditions) { … }
IN_PROC_BROWSER_TEST_F(DevToolsNetInfoTest, OfflineNetworkConditions) { … }
class StaticURLDataSource : public content::URLDataSource { … };
class MockWebUIProvider
: public TestChromeWebUIControllerFactory::WebUIProvider { … };
IN_PROC_BROWSER_TEST_F(DevToolsTest,
DISABLED_TestWindowInitializedOnNavigateBack) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestRawHeadersWithRedirectAndHSTS) { … }
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
#define MAYBE_TestOpenInNewTabFilter …
#else
#define MAYBE_TestOpenInNewTabFilter …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest, MAYBE_TestOpenInNewTabFilter) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, TestOpenSearchResultsInNewTab) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, LoadNetworkResourceForFrontend) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_CreateBrowserContext) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_DisposeEmptyBrowserContext) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, NewWindowFromBrowserContext) { … }
IN_PROC_BROWSER_TEST_F(SitePerProcessDevToolsTest, InspectElement) { … }
class DevToolsTabTargetTest : public DevToolsTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsTabTargetTest, InspectElement) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTabTargetTest, UKMTest) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, ExistsForWebContentsAfterClosing) { … }
IN_PROC_BROWSER_TEST_F(InProcessBrowserTest, BrowserCloseWithBeforeUnload) { … }
IN_PROC_BROWSER_TEST_F(InProcessBrowserTest,
DISABLED_BrowserCloseWithContextMenuOpened) { … }
#if !BUILDFLAG(IS_CHROMEOS)
class KeepAliveDevToolsTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(KeepAliveDevToolsTest, KeepsAliveUntilBrowserClose) { … }
#endif
class DevToolsPolicyTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsPolicyTest, OpenBlockedDevTools) { … }
class DevToolsExtensionHostsPolicyTest : public DevToolsExtensionTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsExtensionHostsPolicyTest,
CantInspectBlockedHost) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionHostsPolicyTest,
CantInspectBlockedSubdomainHost) { … }
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
#define MAYBE_CanInspectAllowedHttpHost …
#else
#define MAYBE_CanInspectAllowedHttpHost …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionHostsPolicyTest,
MAYBE_CanInspectAllowedHttpHost) { … }
IN_PROC_BROWSER_TEST_F(SitePerProcessDevToolsTest,
DISABLED_InputDispatchEventsToOOPIF) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
DISABLED_ExtensionWebSocketUserAgentOverride) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, SourceMapsFromExtension) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, SourceMapsFromDevtools) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest,
DoesNotCrashOnSourceMapsFromUnknownScheme) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_ExtensionWebSocketOfflineNetworkConditions …
#else
#define MAYBE_ExtensionWebSocketOfflineNetworkConditions …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
MAYBE_ExtensionWebSocketOfflineNetworkConditions) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, IsDeveloperModeTrueHistogram) { … }
IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, IsDeveloperModeFalseHistogram) { … }
namespace {
class DevToolsLocalizationTest : public DevToolsTest { … };
}
IN_PROC_BROWSER_TEST_F(DevToolsLocalizationTest,
NavigatorLanguageMatchesApplicationLocaleDocked) { … }
IN_PROC_BROWSER_TEST_F(DevToolsLocalizationTest,
NavigatorLanguageMatchesApplicationLocaleUndocked) { … }
IN_PROC_BROWSER_TEST_F(DevToolsLocalizationTest,
AcceptedLanguageChangesWhileDevToolsIsOpen) { … }
namespace {
class DevToolsFetchTest : public DevToolsTest { … };
}
IN_PROC_BROWSER_TEST_F(DevToolsFetchTest,
DevToolsFetchFromDevToolsSchemeUndocked) { … }
IN_PROC_BROWSER_TEST_F(DevToolsFetchTest,
DevToolsFetchFromDevToolsSchemeDocked) { … }
IN_PROC_BROWSER_TEST_F(DevToolsFetchTest, DevToolsFetchFromHttpDisallowed) { … }
IN_PROC_BROWSER_TEST_F(DevToolsFetchTest, FetchFromDevToolsSchemeIsProhibited) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, HostBindingsSyncIntegration) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, NoJavascriptUrlOnDevtools) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_PauseWhenSameOriginDebuggerAlreadyAttached …
#else
#define MAYBE_PauseWhenSameOriginDebuggerAlreadyAttached …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest,
MAYBE_PauseWhenSameOriginDebuggerAlreadyAttached) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_PauseWhenSameOriginDebuggerAlreadyPaused …
#else
#define MAYBE_PauseWhenSameOriginDebuggerAlreadyPaused …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsTest,
MAYBE_PauseWhenSameOriginDebuggerAlreadyPaused) { … }
class DevToolsSyncTest : public SyncTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsSyncTest, GetSyncInformation) { … }
IN_PROC_BROWSER_TEST_F(DevToolsTest, DISABLED_NoCrashFor1270184) { … }
class DevToolsProcessPerSiteUpToMainFrameThresholdTest : public DevToolsTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsProcessPerSiteUpToMainFrameThresholdTest,
DevToolsWasAttachedBefore) { … }
IN_PROC_BROWSER_TEST_F(DevToolsProcessPerSiteUpToMainFrameThresholdTest,
DISABLED_DontReuseProcess) { … }
class DevToolsProcessPerSiteTest
: public DevToolsProcessPerSiteUpToMainFrameThresholdTest { … };
#if BUILDFLAG(IS_LINUX) && !defined(NDEBUG)
#define MAYBE_DevToolsSharedProcessInfobar …
#else
#define MAYBE_DevToolsSharedProcessInfobar …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsProcessPerSiteTest,
MAYBE_DevToolsSharedProcessInfobar) { … }
class ActiveTabChangedObserver : public TabStripModelObserver { … };
#if BUILDFLAG(IS_WIN) && defined(ADDRESS_SANITIZER)
#define MAYBE_PausedDebuggerFocus …
#else
#define MAYBE_PausedDebuggerFocus …
#endif
IN_PROC_BROWSER_TEST_F(DevToolsProcessPerSiteTest, MAYBE_PausedDebuggerFocus) { … }
class DevToolsConsoleInsightsTest : public DevToolsTest { … };
bool hasQueryParam(WebContents* wc, std::string query_param) { … }
IN_PROC_BROWSER_TEST_F(DevToolsConsoleInsightsTest, NotBeBlockedByFeatureFlag) { … }
IN_PROC_BROWSER_TEST_F(DevToolsConsoleInsightsTest,
EnterprisePolicyEnabledByDefault) { … }
IN_PROC_BROWSER_TEST_F(DevToolsConsoleInsightsTest, IsBlockedByGeo) { … }
IN_PROC_BROWSER_TEST_F(DevToolsConsoleInsightsTest, IsNotEnabledForMinors) { … }
IN_PROC_BROWSER_TEST_F(DevToolsConsoleInsightsTest,
CanBeDisabledByEnterprisePolicy) { … }
IN_PROC_BROWSER_TEST_F(DevToolsConsoleInsightsTest,
CanBeEnabledByEnterprisePolicy) { … }
IN_PROC_BROWSER_TEST_F(DevToolsConsoleInsightsTest,
IsDisabledWhenPolicySetToOne) { … }
class DevToolsSelfXssTest : public DevToolsTest { … };
IN_PROC_BROWSER_TEST_F(DevToolsSelfXssTest, FooFoo) { … }