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

Unified Diff: content/browser/child_process_security_policy_unittest.cc

Issue 7049010: Finish removing url_constants from content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: constants Created 9 years, 7 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: content/browser/child_process_security_policy_unittest.cc
diff --git a/content/browser/child_process_security_policy_unittest.cc b/content/browser/child_process_security_policy_unittest.cc
index 0ee30f8d27bceed660e82c797c1e7a497ccff0d2..9d2b62c3bc81257423f02e46c7763459a4d7c375 100644
--- a/content/browser/child_process_security_policy_unittest.cc
+++ b/content/browser/child_process_security_policy_unittest.cc
@@ -7,8 +7,8 @@
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/platform_file.h"
-#include "chrome/common/url_constants.h"
#include "content/browser/child_process_security_policy.h"
+#include "content/common/url_constants.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_test_job.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -118,17 +118,17 @@ TEST_F(ChildProcessSecurityPolicyTest, AboutTest) {
EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("about:CrASh")));
EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("abOuT:cAChe")));
- p->GrantRequestURL(kRendererID, GURL(chrome::kAboutMemoryURL));
- EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kAboutMemoryURL)));
+ p->GrantRequestURL(kRendererID, GURL("about:memory"));
+ EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("about:memory")));
p->GrantRequestURL(kRendererID, GURL(chrome::kAboutCrashURL));
EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kAboutCrashURL)));
- p->GrantRequestURL(kRendererID, GURL(chrome::kAboutCacheURL));
- EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kAboutCacheURL)));
+ p->GrantRequestURL(kRendererID, GURL("about:cache"));
+ EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("about:cache")));
- p->GrantRequestURL(kRendererID, GURL(chrome::kAboutHangURL));
- EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kAboutHangURL)));
+ p->GrantRequestURL(kRendererID, GURL("about:hang"));
+ EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("about:hang")));
p->Remove(kRendererID);
}

Powered by Google App Engine
This is Rietveld 408576698