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/http/transport_security_state.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/base64.h" | 11 #include "base/base64.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/sha1.h" | 13 #include "base/sha1.h" |
14 #include "base/string_piece.h" | 14 #include "base/string_piece.h" |
15 #include "crypto/sha2.h" | 15 #include "crypto/sha2.h" |
16 #include "net/base/asn1_util.h" | 16 #include "net/base/asn1_util.h" |
17 #include "net/base/cert_test_util.h" | 17 #include "net/base/cert_test_util.h" |
18 #include "net/base/cert_verifier.h" | 18 #include "net/base/cert_verifier.h" |
19 #include "net/base/cert_verify_result.h" | 19 #include "net/base/cert_verify_result.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "net/base/net_log.h" | 21 #include "net/base/net_log.h" |
22 #include "net/base/ssl_info.h" | |
23 #include "net/base/test_completion_callback.h" | 22 #include "net/base/test_completion_callback.h" |
24 #include "net/base/test_data_directory.h" | 23 #include "net/base/test_data_directory.h" |
25 #include "net/base/test_root_certs.h" | 24 #include "net/base/test_root_certs.h" |
26 #include "net/base/x509_cert_types.h" | 25 #include "net/base/x509_cert_types.h" |
27 #include "net/base/x509_certificate.h" | 26 #include "net/base/x509_certificate.h" |
28 #include "net/http/http_util.h" | 27 #include "net/http/http_util.h" |
| 28 #include "net/ssl/ssl_info.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 #if defined(USE_OPENSSL) | 31 #if defined(USE_OPENSSL) |
32 #include "crypto/openssl_util.h" | 32 #include "crypto/openssl_util.h" |
33 #else | 33 #else |
34 #include "crypto/nss_util.h" | 34 #include "crypto/nss_util.h" |
35 #endif | 35 #endif |
36 | 36 |
37 namespace net { | 37 namespace net { |
38 | 38 |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 // Expect to fail for SNI hosts when not searching the SNI list: | 840 // Expect to fail for SNI hosts when not searching the SNI list: |
841 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 841 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
842 "gmail.com", false)); | 842 "gmail.com", false)); |
843 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 843 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
844 "googlegroups.com", false)); | 844 "googlegroups.com", false)); |
845 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 845 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
846 "www.googlegroups.com", false)); | 846 "www.googlegroups.com", false)); |
847 } | 847 } |
848 | 848 |
849 } // namespace net | 849 } // namespace net |
OLD | NEW |