diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-24 19:38:31 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-24 19:38:31 +0000 |
commit | a30f7d3b75631070c2eae4c68f1dfb730234d0b6 (patch) | |
tree | ba3d03efdf7f6da64d1ff427b11ecafbab7126a2 /content/browser/child_process_security_policy_unittest.cc | |
parent | 7d36dcaef8f2a5c030ec5402e3fbe1f515a6d737 (diff) | |
download | chromium_src-a30f7d3b75631070c2eae4c68f1dfb730234d0b6.zip chromium_src-a30f7d3b75631070c2eae4c68f1dfb730234d0b6.tar.gz chromium_src-a30f7d3b75631070c2eae4c68f1dfb730234d0b6.tar.bz2 |
Finish removing url_constants from content/.
BUG=76697
TEST=compiles
Review URL: http://codereview.chromium.org/7049010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/child_process_security_policy_unittest.cc')
-rw-r--r-- | content/browser/child_process_security_policy_unittest.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/content/browser/child_process_security_policy_unittest.cc b/content/browser/child_process_security_policy_unittest.cc index 632aabb..f1f214c 100644 --- a/content/browser/child_process_security_policy_unittest.cc +++ b/content/browser/child_process_security_policy_unittest.cc @@ -7,8 +7,9 @@ #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/test_url_constants.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 +119,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(chrome::kTestMemoryURL)); + EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kTestMemoryURL))); 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(chrome::kTestCacheURL)); + EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kTestCacheURL))); - p->GrantRequestURL(kRendererID, GURL(chrome::kAboutHangURL)); - EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kAboutHangURL))); + p->GrantRequestURL(kRendererID, GURL(chrome::kTestHangURL)); + EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kTestHangURL))); p->Remove(kRendererID); } |