| Index: content/browser/child_process_security_policy_unittest.cc
|
| ===================================================================
|
| --- content/browser/child_process_security_policy_unittest.cc (revision 88158)
|
| +++ content/browser/child_process_security_policy_unittest.cc (working copy)
|
| @@ -45,8 +45,6 @@
|
| EXPECT_FALSE(p->IsWebSafeScheme("registered-web-safe-scheme"));
|
| p->RegisterWebSafeScheme("registered-web-safe-scheme");
|
| EXPECT_TRUE(p->IsWebSafeScheme("registered-web-safe-scheme"));
|
| -
|
| - EXPECT_FALSE(p->IsWebSafeScheme(chrome::kChromeUIScheme));
|
| }
|
|
|
| TEST_F(ChildProcessSecurityPolicyTest, IsPseudoSchemeTest) {
|
| @@ -59,8 +57,6 @@
|
| EXPECT_FALSE(p->IsPseudoScheme("registered-pseudo-scheme"));
|
| p->RegisterPseudoScheme("registered-pseudo-scheme");
|
| EXPECT_TRUE(p->IsPseudoScheme("registered-pseudo-scheme"));
|
| -
|
| - EXPECT_FALSE(p->IsPseudoScheme(chrome::kChromeUIScheme));
|
| }
|
|
|
| TEST_F(ChildProcessSecurityPolicyTest, IsDisabledSchemeTest) {
|
| @@ -123,7 +119,6 @@
|
| EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("about:CrASh")));
|
| EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL("abOuT:cAChe")));
|
|
|
| - // These requests for about: pages should be denied.
|
| p->GrantRequestURL(kRendererID, GURL(chrome::kTestMemoryURL));
|
| EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kTestMemoryURL)));
|
|
|
| @@ -136,16 +131,6 @@
|
| p->GrantRequestURL(kRendererID, GURL(chrome::kTestHangURL));
|
| EXPECT_FALSE(p->CanRequestURL(kRendererID, GURL(chrome::kTestHangURL)));
|
|
|
| - // These requests for chrome:// pages should be granted.
|
| - p->GrantRequestURL(kRendererID, GURL(chrome::kTestNewTabURL));
|
| - EXPECT_TRUE(p->CanRequestURL(kRendererID, GURL(chrome::kTestNewTabURL)));
|
| -
|
| - p->GrantRequestURL(kRendererID, GURL(chrome::kTestHistoryURL));
|
| - EXPECT_TRUE(p->CanRequestURL(kRendererID, GURL(chrome::kTestHistoryURL)));
|
| -
|
| - p->GrantRequestURL(kRendererID, GURL(chrome::kTestBookmarksURL));
|
| - EXPECT_TRUE(p->CanRequestURL(kRendererID, GURL(chrome::kTestBookmarksURL)));
|
| -
|
| p->Remove(kRendererID);
|
| }
|
|
|
|
|