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

Unified Diff: chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc

Issue 16464004: Turn disallowed URL patterns such as <all_urls> for externally_connectable into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: type Created 7 years, 6 months 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
Index: chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc
diff --git a/chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc b/chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc
index c2da186b59b5bdb8da8b2830b38bb58aa4720225..fad12dcf2051ff72ec4784317a21caa0b8d38d5d 100644
--- a/chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc
+++ b/chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc
@@ -218,7 +218,7 @@ TEST_F(ExternallyConnectableTest, ErrorNoAllURLs) {
"externally_connectable_error_all_urls.json",
ErrorUtils::FormatErrorMessage(errors::kErrorWildcardHostsNotAllowed,
"<all_urls>")),
- EXPECT_TYPE_ERROR);
+ EXPECT_TYPE_WARNING);
Yoyo Zhou 2013/06/10 23:51:06 Does this test that the wildcard host patterns wer
not at google - send to devlin 2013/06/11 01:55:23 Good point. Done. This required more changes than
}
TEST_F(ExternallyConnectableTest, ErrorWildcardHost) {
@@ -227,7 +227,7 @@ TEST_F(ExternallyConnectableTest, ErrorWildcardHost) {
"externally_connectable_error_wildcard_host.json",
ErrorUtils::FormatErrorMessage(errors::kErrorWildcardHostsNotAllowed,
"http://*/*")),
- EXPECT_TYPE_ERROR);
+ EXPECT_TYPE_WARNING);
}
TEST_F(ExternallyConnectableTest, ErrorNoTLD) {
@@ -238,7 +238,7 @@ TEST_F(ExternallyConnectableTest, ErrorNoTLD) {
errors::kErrorTopLevelDomainsNotAllowed,
"co.uk",
"http://*.co.uk/*")),
- EXPECT_TYPE_ERROR);
+ EXPECT_TYPE_WARNING);
}
TEST_F(ExternallyConnectableTest, ErrorNoEffectiveTLD) {
@@ -249,7 +249,7 @@ TEST_F(ExternallyConnectableTest, ErrorNoEffectiveTLD) {
errors::kErrorTopLevelDomainsNotAllowed,
"appspot.com",
"http://*.appspot.com/*")),
- EXPECT_TYPE_ERROR);
+ EXPECT_TYPE_WARNING);
}
TEST_F(ExternallyConnectableTest, ErrorUnknownTLD) {
@@ -260,7 +260,7 @@ TEST_F(ExternallyConnectableTest, ErrorUnknownTLD) {
errors::kErrorTopLevelDomainsNotAllowed,
"notatld",
"http://*.notatld/*")),
- EXPECT_TYPE_ERROR);
+ EXPECT_TYPE_WARNING);
}
} // namespace extensions
« no previous file with comments | « chrome/common/extensions/manifest_handlers/externally_connectable.cc ('k') | extensions/common/install_warning.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698