// 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. #ifndef CHROME_TEST_BASE_WEB_UI_MOCHA_BROWSER_TEST_H_ #define CHROME_TEST_BASE_WEB_UI_MOCHA_BROWSER_TEST_H_ #include <string> #include "chrome/test/base/devtools_agent_coverage_observer.h" #include "chrome/test/base/in_process_browser_test.h" namespace content { class WebContents; } // namespace content // Inherit from this class to run WebUI tests that are using Mocha. class WebUIMochaBrowserTest : public InProcessBrowserTest { … }; // Inherit from this class to explicitly focus the web contents before running // any Mocha tests that exercise focus (necessary for Mac, see // https://crbug.com/642467). This should only be used when running as part of // interactive_ui_tests, and not as part of browser_tests. class WebUIMochaFocusTest : public WebUIMochaBrowserTest { … }; #endif // CHROME_TEST_BASE_WEB_UI_MOCHA_BROWSER_TEST_H_