| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |