Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1616)

Unified Diff: chrome/browser/extensions/extension_webnavigation_apitest.cc

Issue 8864002: Mark WebNavigation tests as using legacy extension manifests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_webnavigation_apitest.cc
===================================================================
--- chrome/browser/extensions/extension_webnavigation_apitest.cc (revision 113424)
+++ chrome/browser/extensions/extension_webnavigation_apitest.cc (working copy)
@@ -42,6 +42,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigation) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_api.html")) << message_;
}
@@ -49,6 +52,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationGetFrame) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_getFrame.html")) << message_;
}
@@ -56,6 +62,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationClientRedirect) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_clientRedirect.html"))
<< message_;
@@ -66,6 +75,9 @@
host_resolver()->AddRule("*", "127.0.0.1");
ASSERT_TRUE(StartTestServer());
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_serverRedirect.html"))
<< message_;
@@ -74,6 +86,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationForwardBack) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_forwardBack.html"))
<< message_;
@@ -82,6 +97,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationIFrame) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_iframe.html")) << message_;
}
@@ -89,6 +107,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationOpenTab) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_openTab.html")) << message_;
}
@@ -96,6 +117,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationReferenceFragment) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_referenceFragment.html"))
<< message_;
@@ -104,6 +128,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationSimpleLoad) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_simpleLoad.html")) << message_;
}
@@ -111,6 +138,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationFailures) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_failures.html")) << message_;
}
@@ -118,6 +148,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationUserAction) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
// Wait for the extension to set itself up and return control to us.
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_userAction.html")) << message_;
@@ -154,6 +187,9 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebNavigationRequestOpenTab) {
FrameNavigationState::set_allow_extension_scheme(true);
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kAllowLegacyExtensionManifests);
+
// Wait for the extension to set itself up and return control to us.
ASSERT_TRUE(RunExtensionSubtest("webnavigation", "test_requestOpenTab.html"))
<< message_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698