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

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

Issue 1309813003: Implement an openssl version of a QUIC ProofSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More iOS fix Created 5 years, 3 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_crypto_server_stream_test.cc ('k') | net/quic/test_tools/crypto_test_utils_chromium.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.cc
diff --git a/net/quic/test_tools/crypto_test_utils.cc b/net/quic/test_tools/crypto_test_utils.cc
index 3f0847b47d15a6514b28e2738e00580101cf5274..1f3da2b7463fa5de1bac403f8eb7a7bbce26a9cb 100644
--- a/net/quic/test_tools/crypto_test_utils.cc
+++ b/net/quic/test_tools/crypto_test_utils.cc
@@ -228,9 +228,12 @@ int CryptoTestUtils::HandshakeWithFakeClient(
QuicServerId server_id(kServerHostname, kServerPort, is_https,
PRIVACY_MODE_DISABLED);
if (!options.dont_verify_certs) {
- // TODO(wtc): replace this with ProofVerifierForTesting() when we have
- // a working ProofSourceForTesting().
+#if defined(USE_OPENSSL)
+ crypto_config.SetProofVerifier(ProofVerifierForTesting());
+#else
+ // TODO(rch): Implement a NSS proof source.
crypto_config.SetProofVerifier(FakeProofVerifierForTesting());
+#endif
}
TestQuicSpdyClientSession client_session(client_conn, DefaultQuicConfig(),
server_id, &crypto_config);
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/test_tools/crypto_test_utils_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698