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" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/sha1.h" | 12 #include "base/sha1.h" |
13 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
14 #include "net/base/asn1_util.h" | 14 #include "net/base/asn1_util.h" |
15 #include "net/base/cert_test_util.h" | 15 #include "net/base/cert_test_util.h" |
16 #include "net/base/cert_verifier.h" | 16 #include "net/base/cert_verifier.h" |
| 17 #include "net/base/cert_verify_result.h" |
17 #include "net/base/ssl_info.h" | 18 #include "net/base/ssl_info.h" |
18 #include "net/base/test_root_certs.h" | 19 #include "net/base/test_root_certs.h" |
19 #include "net/base/x509_certificate.h" | 20 #include "net/base/x509_certificate.h" |
20 #include "net/http/http_util.h" | 21 #include "net/http/http_util.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
22 | 23 |
23 #if defined(USE_OPENSSL) | 24 #if defined(USE_OPENSSL) |
24 #include "crypto/openssl_util.h" | 25 #include "crypto/openssl_util.h" |
25 #else | 26 #else |
26 #include "crypto/nss_util.h" | 27 #include "crypto/nss_util.h" |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 // Expect to fail for SNI hosts when not searching the SNI list: | 1270 // Expect to fail for SNI hosts when not searching the SNI list: |
1270 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 1271 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
1271 "gmail.com", false)); | 1272 "gmail.com", false)); |
1272 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 1273 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
1273 "googlegroups.com", false)); | 1274 "googlegroups.com", false)); |
1274 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 1275 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
1275 "www.googlegroups.com", false)); | 1276 "www.googlegroups.com", false)); |
1276 } | 1277 } |
1277 | 1278 |
1278 } // namespace net | 1279 } // namespace net |
OLD | NEW |