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

Unified Diff: chrome/browser/metrics/variations/variations_http_header_provider_unittest.cc

Issue 307743003: Add more Google domains to the list of domains which should have (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Back to v1 Created 6 years, 7 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/metrics/variations/variations_http_header_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/variations/variations_http_header_provider_unittest.cc
diff --git a/chrome/browser/metrics/variations/variations_http_header_provider_unittest.cc b/chrome/browser/metrics/variations/variations_http_header_provider_unittest.cc
index 2aeed12b04aee21cc490e6d898ac212d76509bf2..4490f8d45149e63f461188df08f53ae2b83bc67e 100644
--- a/chrome/browser/metrics/variations/variations_http_header_provider_unittest.cc
+++ b/chrome/browser/metrics/variations/variations_http_header_provider_unittest.cc
@@ -92,7 +92,8 @@ TEST_F(VariationsHttpHeaderProviderTest, ShouldAppendHeaders) {
{ "http://ad.doubleclick.net", true },
{ "https://a.b.c.doubleclick.net", true },
{ "https://a.b.c.doubleclick.net:8081", true },
- { "http://www.doubleclick.com", false },
+ { "http://www.doubleclick.com", true },
+ { "http://www.doubleclick.org", false },
{ "http://www.doubleclick.net.com", false },
{ "https://www.doubleclick.net.com", false },
@@ -106,10 +107,53 @@ TEST_F(VariationsHttpHeaderProviderTest, ShouldAppendHeaders) {
{ "http://www.googleadservices.com", true },
{ "http://www.googleadservices.com:8080", true },
{ "https://www.googleadservices.com", true },
- { "https://www.internal.googleadservices.com", false },
- { "https://www2.googleadservices.com", false },
+ { "https://www.internal.googleadservices.com", true },
+ { "https://www2.googleadservices.com", true },
{ "https://www.googleadservices.org", false },
{ "https://www.googleadservices.com.co.uk", false },
+
+ { "http://WWW.ANDROID.COM", true },
+ { "http://www.android.com", true },
+ { "http://www.doubleclick.com", true },
+ { "http://www.doubleclick.net", true },
+ { "http://www.ggpht.com", true },
+ { "http://www.googleadservices.com", true },
+ { "http://www.googleapis.com", true },
+ { "http://www.googlesyndication.com", true },
+ { "http://www.googleusercontent.com", true },
+ { "http://www.googlevideo.com", true },
+ { "http://ssl.gstatic.com", true },
+ { "http://www.gstatic.com", true },
+ { "http://www.ytimg.com", true },
+ { "http://wwwytimg.com", false },
+ { "http://ytimg.com", false },
+
+ { "http://www.android.org", false },
+ { "http://www.doubleclick.org", false },
+ { "http://www.doubleclick.net", true },
+ { "http://www.ggpht.org", false },
+ { "http://www.googleadservices.org", false },
+ { "http://www.googleapis.org", false },
+ { "http://www.googlesyndication.org", false },
+ { "http://www.googleusercontent.org", false },
+ { "http://www.googlevideo.org", false },
+ { "http://ssl.gstatic.org", false },
+ { "http://www.gstatic.org", false },
+ { "http://www.ytimg.org", false },
+
+ { "http://a.b.android.com", true },
+ { "http://a.b.doubleclick.com", true },
+ { "http://a.b.doubleclick.net", true },
+ { "http://a.b.ggpht.com", true },
+ { "http://a.b.googleadservices.com", true },
+ { "http://a.b.googleapis.com", true },
+ { "http://a.b.googlesyndication.com", true },
+ { "http://a.b.googleusercontent.com", true },
+ { "http://a.b.googlevideo.com", true },
+ { "http://ssl.gstatic.com", true },
+ { "http://a.b.gstatic.com", true },
+ { "http://a.b.ytimg.com", true },
+
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
« no previous file with comments | « chrome/browser/metrics/variations/variations_http_header_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698