summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/url_pattern_unittest.cc
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 04:21:16 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 04:21:16 +0000
commit60e4489819cec6689927c88a4d6114c388fe89fb (patch)
tree68c0f7f657bee7020e3bb2922b64b86f93070e61 /chrome/common/extensions/url_pattern_unittest.cc
parentf76b3b04a4c092d7db4cc2a75da4ca7fbac1f620 (diff)
downloadchromium_src-60e4489819cec6689927c88a4d6114c388fe89fb.zip
chromium_src-60e4489819cec6689927c88a4d6114c388fe89fb.tar.gz
chromium_src-60e4489819cec6689927c88a4d6114c388fe89fb.tar.bz2
Change chrome-ui to chrome. I didn't go too far in converting existing strings to using the url_constant (shipshipship).
Users (such as those on Beta and Dev using session restore) attempting to load the old pages will see a blank white screen. BUG=11272 TEST=Verify that the inspector, debugger, history, downloads and newtab pages load with chrome:// URLS. Verify that replacing the chrome:// with chrome-ui:// does not work. Review URL: http://codereview.chromium.org/101026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/url_pattern_unittest.cc')
-rw-r--r--chrome/common/extensions/url_pattern_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/extensions/url_pattern_unittest.cc b/chrome/common/extensions/url_pattern_unittest.cc
index b53fc07..3db623f 100644
--- a/chrome/common/extensions/url_pattern_unittest.cc
+++ b/chrome/common/extensions/url_pattern_unittest.cc
@@ -70,13 +70,13 @@ TEST(URLPatternTest, Match3) {
// odd schemes and normalization
TEST(URLPatternTest, Match4) {
URLPattern pattern;
- EXPECT_TRUE(pattern.Parse("chrome-ui://thinger/*"));
- EXPECT_EQ("chrome-ui", pattern.scheme());
+ EXPECT_TRUE(pattern.Parse("chrome://thinger/*"));
+ EXPECT_EQ("chrome", pattern.scheme());
EXPECT_EQ("thinger", pattern.host());
EXPECT_FALSE(pattern.match_subdomains());
EXPECT_EQ("/*", pattern.path());
- EXPECT_TRUE(pattern.MatchesUrl(GURL("chrome-ui://thinger/foobar")));
- EXPECT_TRUE(pattern.MatchesUrl(GURL("CHROME-UI://thinger/")));
+ EXPECT_TRUE(pattern.MatchesUrl(GURL("chrome://thinger/foobar")));
+ EXPECT_TRUE(pattern.MatchesUrl(GURL("CHROME://thinger/")));
EXPECT_FALSE(pattern.MatchesUrl(GURL("http://thinger/")));
}