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

Unified Diff: net/tools/quic/quic_client_session_test.cc

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: net/tools/quic/quic_client_session_test.cc
diff --git a/net/tools/quic/quic_client_session_test.cc b/net/tools/quic/quic_client_session_test.cc
index 7a42fadd1701889241930ee6b7ffc9290701a2d4..b9eabe1e17755df9466ed9e067ce4f8d95be9d57 100644
--- a/net/tools/quic/quic_client_session_test.cc
+++ b/net/tools/quic/quic_client_session_test.cc
@@ -37,20 +37,21 @@ namespace tools {
namespace test {
namespace {
-const char kServerHostname[] = "www.example.org";
+const char kServerHostname[] = "test.example.com";
const uint16 kPort = 80;
class ToolsQuicClientSessionTest
: public ::testing::TestWithParam<QuicVersion> {
protected:
ToolsQuicClientSessionTest()
- : connection_(new PacketSavingConnection(&helper_,
+ : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()),
+ connection_(new PacketSavingConnection(&helper_,
Perspective::IS_CLIENT,
- SupportedVersions(GetParam()))) {
- session_.reset(new QuicClientSession(
- DefaultQuicConfig(), connection_,
- QuicServerId(kServerHostname, kPort, false, PRIVACY_MODE_DISABLED),
- &crypto_config_));
+ SupportedVersions(GetParam()))),
+ session_(new QuicClientSession(
+ DefaultQuicConfig(), connection_,
+ QuicServerId(kServerHostname, kPort, PRIVACY_MODE_DISABLED),
+ &crypto_config_)) {
session_->Initialize();
// Advance the time, because timers do not like uninitialized times.
connection_->AdvanceTime(QuicTime::Delta::FromSeconds(1));

Powered by Google App Engine
This is Rietveld 408576698