OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/quic/chromium/crypto/proof_verifier_chromium.h" | 5 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "net/base/net_errors.h" | 8 #include "net/base/net_errors.h" |
9 #include "net/cert/cert_status_flags.h" | 9 #include "net/cert/cert_status_flags.h" |
10 #include "net/cert/cert_verifier.h" | 10 #include "net/cert/cert_verifier.h" |
11 #include "net/cert/ct_log_verifier.h" | 11 #include "net/cert/ct_log_verifier.h" |
12 #include "net/cert/ct_policy_enforcer.h" | 12 #include "net/cert/ct_policy_enforcer.h" |
13 #include "net/cert/ct_policy_status.h" | 13 #include "net/cert/ct_policy_status.h" |
14 #include "net/cert/ct_serialization.h" | 14 #include "net/cert/ct_serialization.h" |
15 #include "net/cert/mock_cert_verifier.h" | 15 #include "net/cert/mock_cert_verifier.h" |
16 #include "net/cert/multi_log_ct_verifier.h" | 16 #include "net/cert/multi_log_ct_verifier.h" |
17 #include "net/http/transport_security_state.h" | 17 #include "net/http/transport_security_state.h" |
18 #include "net/quic/crypto/proof_verifier.h" | 18 #include "net/quic/core/crypto/proof_verifier.h" |
19 #include "net/test/cert_test_util.h" | 19 #include "net/test/cert_test_util.h" |
20 #include "net/test/ct_test_util.h" | 20 #include "net/test/ct_test_util.h" |
21 #include "net/test/test_data_directory.h" | 21 #include "net/test/test_data_directory.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 using ::testing::_; | 25 using ::testing::_; |
26 using ::testing::Return; | 26 using ::testing::Return; |
27 | 27 |
28 namespace net { | 28 namespace net { |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 ProofVerifyDetailsChromium* verify_details = | 583 ProofVerifyDetailsChromium* verify_details = |
584 static_cast<ProofVerifyDetailsChromium*>(details_.get()); | 584 static_cast<ProofVerifyDetailsChromium*>(details_.get()); |
585 EXPECT_TRUE(verify_details->cert_verify_result.cert_status & | 585 EXPECT_TRUE(verify_details->cert_verify_result.cert_status & |
586 CERT_STATUS_PINNED_KEY_MISSING); | 586 CERT_STATUS_PINNED_KEY_MISSING); |
587 EXPECT_TRUE(verify_details->cert_verify_result.cert_status & | 587 EXPECT_TRUE(verify_details->cert_verify_result.cert_status & |
588 CERT_STATUS_CERTIFICATE_TRANSPARENCY_REQUIRED); | 588 CERT_STATUS_CERTIFICATE_TRANSPARENCY_REQUIRED); |
589 } | 589 } |
590 | 590 |
591 } // namespace test | 591 } // namespace test |
592 } // namespace net | 592 } // namespace net |
OLD | NEW |