#include <stddef.h>
#include <memory>
#include <utility>
#include "base/threading/thread_restrictions.h"
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_web_ui.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/extensions/chrome_manifest_url_handlers.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/browser/extension_creator.h"
#include "extensions/common/constants.h"
#include "extensions/test/extension_test_message_listener.h"
#include "extensions/test/result_catcher.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
WebContents;
namespace extensions {
class ExtensionOverrideTest : public ExtensionApiTest { … };
IN_PROC_BROWSER_TEST_F(ExtensionOverrideTest, OverrideNewTab) { … }
IN_PROC_BROWSER_TEST_F(ExtensionOverrideTest, OverrideNewTabMultiple) { … }
IN_PROC_BROWSER_TEST_F(ExtensionOverrideTest,
OverridingExtensionUnloadedWithPageOpen) { … }
IN_PROC_BROWSER_TEST_F(ExtensionOverrideTest, OverrideNewTabIncognito) { … }
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_SubframeNavigationInOverridenNTPDoesNotAffectFocus …
#else
#define MAYBE_SubframeNavigationInOverridenNTPDoesNotAffectFocus …
#endif
IN_PROC_BROWSER_TEST_F(
ExtensionOverrideTest,
MAYBE_SubframeNavigationInOverridenNTPDoesNotAffectFocus) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_OverrideHistory …
#else
#define MAYBE_OverrideHistory …
#endif
IN_PROC_BROWSER_TEST_F(ExtensionOverrideTest, MAYBE_OverrideHistory) { … }
IN_PROC_BROWSER_TEST_F(ExtensionOverrideTest, ShouldNotCreateDuplicateEntries) { … }
IN_PROC_BROWSER_TEST_F(ExtensionOverrideTest, ShouldCleanUpDuplicateEntries) { … }
}