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

Unified Diff: net/quic/crypto/crypto_server_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/net_common.gypi ('k') | net/quic/crypto/proof_source_chromium.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_server_test.cc
diff --git a/net/quic/crypto/crypto_server_test.cc b/net/quic/crypto/crypto_server_test.cc
index c8c8cfead974b52b63628344678ab65e2e064e22..9ab24a0abe848f936c47e80068c1a47a038a2241 100644
--- a/net/quic/crypto/crypto_server_test.cc
+++ b/net/quic/crypto/crypto_server_test.cc
@@ -93,7 +93,11 @@ class CryptoServerTest : public ::testing::TestWithParam<TestParams> {
: rand_(QuicRandom::GetInstance()),
client_address_(Loopback4(), 1234),
config_(QuicCryptoServerConfig::TESTING, rand_) {
+#if defined(USE_OPENSSL)
config_.SetProofSource(CryptoTestUtils::ProofSourceForTesting());
+#else
+ config_.SetProofSource(CryptoTestUtils::FakeProofSourceForTesting());
+#endif
supported_versions_ = QuicSupportedVersions();
client_version_ = QuicUtils::TagToString(
QuicVersionToQuicTag(supported_versions_.front()));
@@ -377,7 +381,7 @@ TEST_P(CryptoServerTest, BadSNI) {
// TODO(rtenneti): Enable the DefaultCert test after implementing ProofSource.
// See http://crbug.com/514472.
-TEST_F(CryptoServerTest, DISABLED_DefaultCert) {
+TEST_P(CryptoServerTest, DefaultCert) {
// Check that the server replies with a default certificate when no SNI is
// specified.
// clang-format off
« no previous file with comments | « net/net_common.gypi ('k') | net/quic/crypto/proof_source_chromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698