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 1221 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 |