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

Unified Diff: net/quic/test_tools/crypto_test_utils_chromium.cc

Issue 1882433002: Removing NSS files and USE_OPENSSL flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing more nits. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/test_tools/crypto_test_utils_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/crypto_test_utils_chromium.cc
diff --git a/net/quic/test_tools/crypto_test_utils_chromium.cc b/net/quic/test_tools/crypto_test_utils_chromium.cc
index 3932f31c0fc48e9648b9c14d594f6d0d03f004b5..1612c909eb2345ca0b2ecc88803ac82636e572cf 100644
--- a/net/quic/test_tools/crypto_test_utils_chromium.cc
+++ b/net/quic/test_tools/crypto_test_utils_chromium.cc
@@ -219,11 +219,7 @@ class FakeProofVerifier : public TestProofVerifierChromium {
// static
ProofSource* CryptoTestUtils::ProofSourceForTesting() {
-#if defined(USE_OPENSSL)
ProofSourceChromium* source = new ProofSourceChromium();
-#else
- FakeProofSource* source = new FakeProofSource();
Ryan Hamilton 2016/04/18 21:52:06 I think you can now remove the FakeProofSource cla
-#endif
base::FilePath certs_dir = GetTestCertsDirectory();
CHECK(source->Initialize(
certs_dir.AppendASCII("quic_chain.crt"),
@@ -250,15 +246,9 @@ ProofVerifier* ProofVerifierForTestingInternal(bool use_real_proof_verifier) {
std::move(cert_verifier), make_scoped_ptr(new TransportSecurityState),
make_scoped_ptr(new MultiLogCTVerifier), "quic_root.crt");
}
-#if defined(USE_OPENSSL)
return new TestProofVerifierChromium(
std::move(cert_verifier), make_scoped_ptr(new TransportSecurityState),
make_scoped_ptr(new MultiLogCTVerifier), "quic_root.crt");
-#else
- return new FakeProofVerifier(
- std::move(cert_verifier), make_scoped_ptr(new TransportSecurityState),
- make_scoped_ptr(new MultiLogCTVerifier), "quic_root.crt");
-#endif
}
// static
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/test_tools/crypto_test_utils_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698