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

Unified Diff: net/quic/quic_client_session_test.cc

Issue 192583004: QUIC - use QuicSessionKey tuple (host, port, is_https) instead of server_hostname (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use QuicSessionKey as arg and delete server_hostname as arg Created 6 years, 9 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/quic/quic_client_session_test.cc
diff --git a/net/quic/quic_client_session_test.cc b/net/quic/quic_client_session_test.cc
index 5e0ea536d705e0319f946fb58a606b9f649dbe11..cbbce637cdff09d0aea7201a87024492ea495b9d 100644
--- a/net/quic/quic_client_session_test.cc
+++ b/net/quic/quic_client_session_test.cc
@@ -27,6 +27,7 @@ namespace test {
namespace {
const char kServerHostname[] = "www.example.com";
+const uint16 kServerPort = 80;
class TestPacketWriter : public QuicDefaultPacketWriter {
public:
@@ -66,8 +67,9 @@ class QuicClientSessionTest : public ::testing::TestWithParam<QuicVersion> {
: writer_(new TestPacketWriter()),
connection_(
new PacketSavingConnection(false, SupportedVersions(GetParam()))),
+ session_key_(kServerHostname, kServerPort, false),
session_(connection_, GetSocket().Pass(), writer_.Pass(), NULL, NULL,
- kServerHostname, DefaultQuicConfig(), &crypto_config_,
+ session_key_, DefaultQuicConfig(), &crypto_config_,
&net_log_) {
session_.config()->SetDefaults();
crypto_config_.SetDefaults();
@@ -97,6 +99,7 @@ class QuicClientSessionTest : public ::testing::TestWithParam<QuicVersion> {
CapturingNetLog net_log_;
MockClientSocketFactory socket_factory_;
StaticSocketDataProvider socket_data_;
+ QuicSessionKey session_key_;
QuicClientSession session_;
MockClock clock_;
MockRandom random_;

Powered by Google App Engine
This is Rietveld 408576698