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/http/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/strings/string_piece.h" |
15 #include "crypto/sha2.h" | 15 #include "crypto/sha2.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 #include "net/base/net_log.h" | 17 #include "net/base/net_log.h" |
18 #include "net/base/test_completion_callback.h" | 18 #include "net/base/test_completion_callback.h" |
19 #include "net/base/test_data_directory.h" | 19 #include "net/base/test_data_directory.h" |
20 #include "net/cert/asn1_util.h" | 20 #include "net/cert/asn1_util.h" |
21 #include "net/cert/cert_verifier.h" | 21 #include "net/cert/cert_verifier.h" |
22 #include "net/cert/cert_verify_result.h" | 22 #include "net/cert/cert_verify_result.h" |
23 #include "net/cert/test_root_certs.h" | 23 #include "net/cert/test_root_certs.h" |
24 #include "net/cert/x509_cert_types.h" | 24 #include "net/cert/x509_cert_types.h" |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 // Expect to fail for SNI hosts when not searching the SNI list: | 830 // Expect to fail for SNI hosts when not searching the SNI list: |
831 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 831 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
832 "gmail.com", false)); | 832 "gmail.com", false)); |
833 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 833 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
834 "googlegroups.com", false)); | 834 "googlegroups.com", false)); |
835 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( | 835 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( |
836 "www.googlegroups.com", false)); | 836 "www.googlegroups.com", false)); |
837 } | 837 } |
838 | 838 |
839 } // namespace net | 839 } // namespace net |
OLD | NEW |