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

Unified Diff: chrome/browser/content_settings/content_settings_pattern_unittest.cc

Issue 7229005: Include port when creating a pattern for a HTTPS URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 6 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/browser/content_settings/content_settings_pattern.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/content_settings_pattern_unittest.cc
diff --git a/chrome/browser/content_settings/content_settings_pattern_unittest.cc b/chrome/browser/content_settings/content_settings_pattern_unittest.cc
index 0ec8e0ce93436f5159b058712d179606afa047bf..87398aa48c852d078d44a2b13c7f4458166b9140 100644
--- a/chrome/browser/content_settings/content_settings_pattern_unittest.cc
+++ b/chrome/browser/content_settings/content_settings_pattern_unittest.cc
@@ -74,12 +74,12 @@ TEST(ContentSettingsPatternTest, FromURL) {
pattern = ContentSettingsPattern::FromURL(GURL("https://www.google.com:443"));
EXPECT_TRUE(pattern.Matches(GURL("https://www.google.com")));
EXPECT_TRUE(pattern.Matches(GURL("https://www.google.com:443")));
- EXPECT_TRUE(pattern.Matches(GURL("https://www.google.com:444")));
+ EXPECT_FALSE(pattern.Matches(GURL("https://www.google.com:444")));
EXPECT_FALSE(pattern.Matches(GURL("http://www.google.com:443")));
pattern = ContentSettingsPattern::FromURL(GURL("https://127.0.0.1"));
EXPECT_TRUE(pattern.IsValid());
- EXPECT_STREQ("https://127.0.0.1", pattern.ToString().c_str());
+ EXPECT_STREQ("https://127.0.0.1:443", pattern.ToString().c_str());
pattern = ContentSettingsPattern::FromURL(GURL("http://[::1]"));
EXPECT_TRUE(pattern.IsValid());
« no previous file with comments | « chrome/browser/content_settings/content_settings_pattern.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698