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

Unified Diff: net/quic/quic_crypto_server_stream_test.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/crypto/proof_source_chromium_openssl.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_crypto_server_stream_test.cc
diff --git a/net/quic/quic_crypto_server_stream_test.cc b/net/quic/quic_crypto_server_stream_test.cc
index a60fcaae5a29e3d8a2302b053366e3e17122cdf7..5eb4e452a963e6b6d203131cdb69db10c64df389 100644
--- a/net/quic/quic_crypto_server_stream_test.cc
+++ b/net/quic/quic_crypto_server_stream_test.cc
@@ -69,10 +69,14 @@ class QuicCryptoServerStreamTest : public ::testing::TestWithParam<bool> {
: server_crypto_config_(QuicCryptoServerConfig::TESTING,
QuicRandom::GetInstance()),
server_id_(kServerHostname, kServerPort, false, PRIVACY_MODE_DISABLED) {
- // TODO(wtc): replace this with ProofSourceForTesting() when Chromium has
- // a working ProofSourceForTesting().
+#if defined(USE_OPENSSL)
+ server_crypto_config_.SetProofSource(
+ CryptoTestUtils::ProofSourceForTesting());
+#else
+ // TODO(rch): Implement a NSS proof source.
server_crypto_config_.SetProofSource(
CryptoTestUtils::FakeProofSourceForTesting());
+#endif
server_crypto_config_.set_strike_register_no_startup_period();
InitializeServer();
« no previous file with comments | « net/quic/crypto/proof_source_chromium_openssl.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698