| 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 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
| 26 #include "net/base/test_completion_callback.h" | 26 #include "net/base/test_completion_callback.h" |
| 27 #include "net/cert/asn1_util.h" | 27 #include "net/cert/asn1_util.h" |
| 28 #include "net/cert/cert_verifier.h" | 28 #include "net/cert/cert_verifier.h" |
| 29 #include "net/cert/cert_verify_result.h" | 29 #include "net/cert/cert_verify_result.h" |
| 30 #include "net/cert/ct_policy_status.h" | 30 #include "net/cert/ct_policy_status.h" |
| 31 #include "net/cert/test_root_certs.h" | 31 #include "net/cert/test_root_certs.h" |
| 32 #include "net/cert/x509_cert_types.h" | 32 #include "net/cert/x509_cert_types.h" |
| 33 #include "net/cert/x509_certificate.h" | 33 #include "net/cert/x509_certificate.h" |
| 34 #include "net/http/http_util.h" | 34 #include "net/http/http_util.h" |
| 35 #include "net/log/net_log.h" | |
| 36 #include "net/ssl/ssl_info.h" | 35 #include "net/ssl/ssl_info.h" |
| 37 #include "net/test/cert_test_util.h" | 36 #include "net/test/cert_test_util.h" |
| 38 #include "net/test/test_data_directory.h" | 37 #include "net/test/test_data_directory.h" |
| 39 #include "testing/gmock/include/gmock/gmock.h" | 38 #include "testing/gmock/include/gmock/gmock.h" |
| 40 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
| 41 | 40 |
| 42 namespace net { | 41 namespace net { |
| 43 | 42 |
| 44 namespace { | 43 namespace { |
| 45 | 44 |
| (...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2338 base::FieldTrialList::CreateFieldTrial("EnforceCTForProblematicRoots", | 2337 base::FieldTrialList::CreateFieldTrial("EnforceCTForProblematicRoots", |
| 2339 "disabled"); | 2338 "disabled"); |
| 2340 | 2339 |
| 2341 EXPECT_FALSE( | 2340 EXPECT_FALSE( |
| 2342 state.ShouldRequireCT("www.example.com", before_cert.get(), hashes)); | 2341 state.ShouldRequireCT("www.example.com", before_cert.get(), hashes)); |
| 2343 EXPECT_FALSE( | 2342 EXPECT_FALSE( |
| 2344 state.ShouldRequireCT("www.example.com", after_cert.get(), hashes)); | 2343 state.ShouldRequireCT("www.example.com", after_cert.get(), hashes)); |
| 2345 } | 2344 } |
| 2346 | 2345 |
| 2347 } // namespace net | 2346 } // namespace net |
| OLD | NEW |