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

Side by Side Diff: net/base/transport_security_state_unittest.cc

Issue 9602009: net: don't set HSTS for chart.apis.google.com (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/transport_security_state.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/transport_security_state.h" 5 #include "net/base/transport_security_state.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 EXPECT_TRUE(ShouldRedirect("accounts.google.com")); 601 EXPECT_TRUE(ShouldRedirect("accounts.google.com"));
602 EXPECT_TRUE(ShouldRedirect("profiles.google.com")); 602 EXPECT_TRUE(ShouldRedirect("profiles.google.com"));
603 EXPECT_TRUE(ShouldRedirect("mail.google.com")); 603 EXPECT_TRUE(ShouldRedirect("mail.google.com"));
604 EXPECT_TRUE(ShouldRedirect("chatenabled.mail.google.com")); 604 EXPECT_TRUE(ShouldRedirect("chatenabled.mail.google.com"));
605 EXPECT_TRUE(ShouldRedirect("talkgadget.google.com")); 605 EXPECT_TRUE(ShouldRedirect("talkgadget.google.com"));
606 EXPECT_TRUE(ShouldRedirect("hostedtalkgadget.google.com")); 606 EXPECT_TRUE(ShouldRedirect("hostedtalkgadget.google.com"));
607 EXPECT_TRUE(ShouldRedirect("talk.google.com")); 607 EXPECT_TRUE(ShouldRedirect("talk.google.com"));
608 EXPECT_TRUE(ShouldRedirect("plus.google.com")); 608 EXPECT_TRUE(ShouldRedirect("plus.google.com"));
609 EXPECT_TRUE(ShouldRedirect("groups.google.com")); 609 EXPECT_TRUE(ShouldRedirect("groups.google.com"));
610 EXPECT_TRUE(ShouldRedirect("apis.google.com")); 610 EXPECT_TRUE(ShouldRedirect("apis.google.com"));
611 EXPECT_FALSE(ShouldRedirect("chart.apis.google.com"));
611 EXPECT_TRUE(ShouldRedirect("ssl.google-analytics.com")); 612 EXPECT_TRUE(ShouldRedirect("ssl.google-analytics.com"));
612 EXPECT_TRUE(ShouldRedirect("gmail.com")); 613 EXPECT_TRUE(ShouldRedirect("gmail.com"));
613 EXPECT_TRUE(ShouldRedirect("www.gmail.com")); 614 EXPECT_TRUE(ShouldRedirect("www.gmail.com"));
614 EXPECT_TRUE(ShouldRedirect("googlemail.com")); 615 EXPECT_TRUE(ShouldRedirect("googlemail.com"));
615 EXPECT_TRUE(ShouldRedirect("www.googlemail.com")); 616 EXPECT_TRUE(ShouldRedirect("www.googlemail.com"));
616 EXPECT_TRUE(ShouldRedirect("googleplex.com")); 617 EXPECT_TRUE(ShouldRedirect("googleplex.com"));
617 EXPECT_TRUE(ShouldRedirect("www.googleplex.com")); 618 EXPECT_TRUE(ShouldRedirect("www.googleplex.com"));
618 EXPECT_FALSE(HasState("m.gmail.com")); 619 EXPECT_FALSE(HasState("m.gmail.com"));
619 EXPECT_FALSE(HasState("m.googlemail.com")); 620 EXPECT_FALSE(HasState("m.googlemail.com"));
620 621
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 // Expect to fail for SNI hosts when not searching the SNI list: 1249 // Expect to fail for SNI hosts when not searching the SNI list:
1249 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( 1250 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty(
1250 "gmail.com", false)); 1251 "gmail.com", false));
1251 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( 1252 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty(
1252 "googlegroups.com", false)); 1253 "googlegroups.com", false));
1253 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( 1254 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty(
1254 "www.googlegroups.com", false)); 1255 "www.googlegroups.com", false));
1255 } 1256 }
1256 1257
1257 } // namespace net 1258 } // namespace net
OLDNEW
« no previous file with comments | « net/base/transport_security_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698