chromium/chrome/test/data/webui/inspect/inspect_ui_browsertest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/devtools/device/adb/adb_device_provider.h"
#include "chrome/browser/devtools/device/adb/mock_adb_server.h"
#include "chrome/browser/devtools/device/devtools_android_bridge.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/base/web_ui_mocha_browser_test.h"
#include "components/privacy_sandbox/privacy_sandbox_attestations/privacy_sandbox_attestations.h"
#include "components/privacy_sandbox/privacy_sandbox_attestations/scoped_privacy_sandbox_attestations.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/common/content_features.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/fenced_frame_test_util.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "third_party/blink/public/common/features.h"

WebContents;

namespace {

const char kSharedWorkerTestPage[] =;

class InspectUITest : public WebUIMochaBrowserTest {};

IN_PROC_BROWSER_TEST_F(InspectUITest, InspectUIPage) {}

IN_PROC_BROWSER_TEST_F(InspectUITest, SharedWorker) {}

// Flaky due to failure to bind a hardcoded port. crbug.com/566057
IN_PROC_BROWSER_TEST_F(InspectUITest, DISABLED_AndroidTargets) {}

IN_PROC_BROWSER_TEST_F(InspectUITest, ReloadCrash) {}

// Disabled due to excessive flakiness. http://crbug.com/1304812
#if BUILDFLAG(IS_MAC)
#define MAYBE_LaunchUIDevtools
#else
#define MAYBE_LaunchUIDevtools
#endif
IN_PROC_BROWSER_TEST_F(InspectUITest, MAYBE_LaunchUIDevtools) {}

class InspectUISharedStorageTest : public InspectUITest {};

IN_PROC_BROWSER_TEST_F(InspectUISharedStorageTest, SharedStorageWorklet) {}

class InspectUIFencedFrameTest : public InspectUITest {};

// TODO(crbug.com/40227465): Re-enable this test
IN_PROC_BROWSER_TEST_F(InspectUIFencedFrameTest,
                       DISABLED_FencedFrameInFrontEnd) {}

}  // namespace