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

Unified Diff: chrome/browser/renderer_security_policy_unittest.cc

Issue 12418: Implement History as HTML and add/change a bunch of stuff to make it easier t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | « chrome/browser/renderer_security_policy.cc ('k') | chrome/browser/resources/browser_resources.vcproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_security_policy_unittest.cc
===================================================================
--- chrome/browser/renderer_security_policy_unittest.cc (revision 6238)
+++ chrome/browser/renderer_security_policy_unittest.cc (working copy)
@@ -14,12 +14,12 @@
protected:
// testing::Test
virtual void SetUp() {
- // In the real world, "chrome-resource" is a handled scheme.
- URLRequest::RegisterProtocolFactory("chrome-resource",
+ // In the real world, "chrome" is a handled scheme.
+ URLRequest::RegisterProtocolFactory("chrome",
&URLRequestTestJob::Factory);
}
virtual void TearDown() {
- URLRequest::RegisterProtocolFactory("chrome-resource", NULL);
+ URLRequest::RegisterProtocolFactory("chrome", NULL);
}
};
@@ -70,7 +70,7 @@
EXPECT_FALSE(p->CanRequestURL(kRendererID,
GURL("view-cache:http://www.google.com/")));
EXPECT_FALSE(p->CanRequestURL(kRendererID,
- GURL("chrome-resource://foo/bar")));
+ GURL("chrome://foo/bar")));
p->Remove(kRendererID);
}
@@ -203,7 +203,7 @@
TEST_F(RendererSecurityPolicyTest, CanServiceInspectElement) {
RendererSecurityPolicy* p = RendererSecurityPolicy::GetInstance();
- GURL url("chrome-resource://inspector/inspector.html");
+ GURL url("chrome://inspector/inspector.html");
p->Add(kRendererID);
@@ -217,7 +217,7 @@
TEST_F(RendererSecurityPolicyTest, CanServiceDOMUIBindings) {
RendererSecurityPolicy* p = RendererSecurityPolicy::GetInstance();
- GURL url("chrome-resource://thumb/http://www.google.com/");
+ GURL url("chrome://thumb/http://www.google.com/");
p->Add(kRendererID);
« no previous file with comments | « chrome/browser/renderer_security_policy.cc ('k') | chrome/browser/resources/browser_resources.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698