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

Unified Diff: net/tools/quic/test_tools/quic_test_client.h

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: Merge with TOT 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/tools/quic/test_tools/quic_test_client.h
diff --git a/net/tools/quic/test_tools/quic_test_client.h b/net/tools/quic/test_tools/quic_test_client.h
index fd1f4c4d5d744800e6c47a695ced731d0692bad6..7a0ab82d537bfaea2d09aa0626240f2eba46cb2a 100644
--- a/net/tools/quic/test_tools/quic_test_client.h
+++ b/net/tools/quic/test_tools/quic_test_client.h
@@ -17,6 +17,7 @@
namespace net {
class ProofVerifier;
+class QuicSessionKey;
namespace tools {
@@ -30,14 +31,15 @@ class MockableQuicClient;
// A toy QUIC client used for testing.
class QuicTestClient : public QuicDataStream::Visitor {
public:
- QuicTestClient(IPEndPoint server_address, const string& server_hostname,
+ QuicTestClient(IPEndPoint server_address,
+ const QuicSessionKey& server_key,
const QuicVersionVector& supported_versions);
QuicTestClient(IPEndPoint server_address,
- const string& server_hostname,
+ const QuicSessionKey& server_key,
bool secure,
const QuicVersionVector& supported_versions);
QuicTestClient(IPEndPoint server_address,
- const string& server_hostname,
+ const QuicSessionKey& server_key,
bool secure,
const QuicConfig& config,
const QuicVersionVector& supported_versions);
@@ -118,10 +120,13 @@ class QuicTestClient : public QuicDataStream::Visitor {
void WaitForWriteToFlush();
private:
- void Initialize(IPEndPoint address, const string& hostname, bool secure);
+ void Initialize(IPEndPoint address,
+ const QuicSessionKey& server_key,
+ bool secure);
IPEndPoint server_address_;
IPEndPoint client_address_;
+ QuicSessionKey server_key_;
scoped_ptr<MockableQuicClient> client_; // The actual client
QuicSpdyClientStream* stream_;

Powered by Google App Engine
This is Rietveld 408576698