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/crypto/proof_verifier_chromium.h" | 5 #include "net/quic/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/base/test_data_directory.h" | |
10 #include "net/cert/cert_status_flags.h" | 9 #include "net/cert/cert_status_flags.h" |
11 #include "net/cert/cert_verifier.h" | 10 #include "net/cert/cert_verifier.h" |
12 #include "net/cert/ct_log_verifier.h" | 11 #include "net/cert/ct_log_verifier.h" |
13 #include "net/cert/ct_policy_enforcer.h" | 12 #include "net/cert/ct_policy_enforcer.h" |
14 #include "net/cert/ct_policy_status.h" | 13 #include "net/cert/ct_policy_status.h" |
15 #include "net/cert/ct_serialization.h" | 14 #include "net/cert/ct_serialization.h" |
16 #include "net/cert/mock_cert_verifier.h" | 15 #include "net/cert/mock_cert_verifier.h" |
17 #include "net/cert/multi_log_ct_verifier.h" | 16 #include "net/cert/multi_log_ct_verifier.h" |
18 #include "net/http/transport_security_state.h" | 17 #include "net/http/transport_security_state.h" |
19 #include "net/quic/crypto/proof_verifier.h" | 18 #include "net/quic/crypto/proof_verifier.h" |
20 #include "net/test/cert_test_util.h" | 19 #include "net/test/cert_test_util.h" |
21 #include "net/test/ct_test_util.h" | 20 #include "net/test/ct_test_util.h" |
| 21 #include "net/test/test_data_directory.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 namespace test { | 25 namespace test { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // CertVerifier that will fail the test if it is ever called. | 29 // CertVerifier that will fail the test if it is ever called. |
30 class FailsTestCertVerifier : public CertVerifier { | 30 class FailsTestCertVerifier : public CertVerifier { |
31 public: | 31 public: |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 ASSERT_EQ(QUIC_SUCCESS, status); | 471 ASSERT_EQ(QUIC_SUCCESS, status); |
472 | 472 |
473 ASSERT_TRUE(details_.get()); | 473 ASSERT_TRUE(details_.get()); |
474 ProofVerifyDetailsChromium* verify_details = | 474 ProofVerifyDetailsChromium* verify_details = |
475 static_cast<ProofVerifyDetailsChromium*>(details_.get()); | 475 static_cast<ProofVerifyDetailsChromium*>(details_.get()); |
476 EXPECT_TRUE(verify_details->pkp_bypassed); | 476 EXPECT_TRUE(verify_details->pkp_bypassed); |
477 } | 477 } |
478 | 478 |
479 } // namespace test | 479 } // namespace test |
480 } // namespace net | 480 } // namespace net |
OLD | NEW |