| 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);
|
| }
|
|
|