Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: net/quic/test_tools/crypto_test_utils_chromium.cc

Issue 18033005: Cleanup of OpenSSL/NSS implementation of ProofVerfifier release. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented wtc's comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_session.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698