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

Unified Diff: chrome/renderer/chrome_content_renderer_client_unittest.cc

Issue 12089059: Don't grant special privs to any http URL, ever. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client_unittest.cc
===================================================================
--- chrome/renderer/chrome_content_renderer_client_unittest.cc (revision 179429)
+++ chrome/renderer/chrome_content_renderer_client_unittest.cc (working copy)
@@ -136,7 +136,7 @@
// interfaces.
{
WebPluginParams params;
- EXPECT_TRUE(ChromeContentRendererClient::IsNaClAllowed(
+ EXPECT_FALSE(ChromeContentRendererClient::IsNaClAllowed(
GURL(), GURL("http://plus.google.com/games"),
kNaClRestricted, kExtensionRestricted, kExtensionNotFromWebStore,
&params));
@@ -151,7 +151,7 @@
kNaClRestricted, kExtensionRestricted, kExtensionNotFromWebStore,
&params));
EXPECT_FALSE(AllowsDevInterfaces(params));
- EXPECT_TRUE(ChromeContentRendererClient::IsNaClAllowed(
+ EXPECT_FALSE(ChromeContentRendererClient::IsNaClAllowed(
GURL(), GURL("http://plus.sandbox.google.com/games"),
kNaClRestricted, kExtensionRestricted, kExtensionNotFromWebStore,
&params));
@@ -191,7 +191,7 @@
{
WebPluginParams params;
EXPECT_FALSE(ChromeContentRendererClient::IsNaClAllowed(
- GURL(), GURL("http://plus.google.com.evil.com/games"),
+ GURL(), GURL("https://plus.google.com.evil.com/games"),
kNaClRestricted, kExtensionRestricted, kExtensionNotFromWebStore,
&params));
}
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698