diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-15 00:45:14 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-15 00:45:14 +0000 |
commit | e4c3ea63ddd3f174701664e61ac5a357e1bb3733 (patch) | |
tree | b70f7929ae2fad757e3983197eff84e091132506 /net/quic/quic_http_stream_test.cc | |
parent | e9e8bc891c8bacc98147d763d4faf2c7f5a45fca (diff) | |
download | chromium_src-e4c3ea63ddd3f174701664e61ac5a357e1bb3733.zip chromium_src-e4c3ea63ddd3f174701664e61ac5a357e1bb3733.tar.gz chromium_src-e4c3ea63ddd3f174701664e61ac5a357e1bb3733.tar.bz2 |
QUIC - use QuicSessionKey tuple (host, port, is_https) instead of
server_hostname, while creating QuicClientSession,
QuicCryptoClientStream, QuicCryptoClientConfig, etc objects.
QuicSessionKey is used as the key to access QUIC server
config information from all caches (disk and memory caches).
On Disk cache, the key for accessing QUIC server information is the
flattened version (scheme://hostname:port) of QuicSession.
scheme would be either http or https until we support other schemes.
R=rch@chromium.org, wtc@chromium.org
Review URL: https://codereview.chromium.org/192583004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/quic_http_stream_test.cc')
-rw-r--r-- | net/quic/quic_http_stream_test.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/quic/quic_http_stream_test.cc b/net/quic/quic_http_stream_test.cc index 316f114..bc0037a 100644 --- a/net/quic/quic_http_stream_test.cc +++ b/net/quic/quic_http_stream_test.cc @@ -49,6 +49,8 @@ namespace test { namespace { const char kUploadData[] = "hello world!"; +const char kServerHostname[] = "www.google.com"; +const uint16 kServerPort = 80; class TestQuicConnection : public QuicConnection { public: @@ -206,8 +208,9 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<QuicVersion> { writer_.Pass(), NULL, make_scoped_ptr((QuicServerInfo*)NULL), &crypto_client_stream_factory_, - "www.google.com", DefaultQuicConfig(), - &crypto_config_, NULL)); + QuicSessionKey(kServerHostname, kServerPort, + false), + DefaultQuicConfig(), &crypto_config_, NULL)); session_->GetCryptoStream()->CryptoConnect(); EXPECT_TRUE(session_->IsCryptoHandshakeConfirmed()); stream_.reset(use_closing_stream_ ? |