OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test_tools/crypto_test_utils.h" | 5 #include "net/quic/test_tools/crypto_test_utils.h" |
6 | 6 |
7 #include "base/files/file_path.h" | |
8 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
10 #include "net/base/test_data_directory.h" | 9 #include "net/base/test_data_directory.h" |
11 #include "net/cert/cert_verifier.h" | 10 #include "net/cert/cert_verifier.h" |
12 #include "net/cert/test_root_certs.h" | 11 #include "net/cert/test_root_certs.h" |
13 #include "net/cert/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
14 #include "net/quic/crypto/proof_verifier_chromium.h" | 13 #include "net/quic/crypto/proof_verifier_chromium.h" |
15 #include "net/test/cert_test_util.h" | 14 #include "net/test/cert_test_util.h" |
16 | 15 |
17 namespace net { | 16 namespace net { |
(...skipping 14 matching lines...) Expand all Loading... |
32 virtual ~TestProofVerifierChromium() { } | 31 virtual ~TestProofVerifierChromium() { } |
33 | 32 |
34 private: | 33 private: |
35 ScopedTestRoot scoped_root_; | 34 ScopedTestRoot scoped_root_; |
36 scoped_ptr<CertVerifier> cert_verifier_; | 35 scoped_ptr<CertVerifier> cert_verifier_; |
37 }; | 36 }; |
38 | 37 |
39 // static | 38 // static |
40 ProofVerifier* CryptoTestUtils::ProofVerifierForTesting() { | 39 ProofVerifier* CryptoTestUtils::ProofVerifierForTesting() { |
41 TestProofVerifierChromium* proof_verifier = new TestProofVerifierChromium( | 40 TestProofVerifierChromium* proof_verifier = new TestProofVerifierChromium( |
42 CertVerifier::CreateDefault(), "quic_proof_verify.crt"); | 41 CertVerifier::CreateDefault(), "quic_root.crt"); |
43 return proof_verifier; | 42 return proof_verifier; |
44 } | 43 } |
45 | 44 |
46 } // namespace test | 45 } // namespace test |
47 | 46 |
48 } // namespace net | 47 } // namespace net |
OLD | NEW |