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

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

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 7 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 e7cb9763372b677c331d10bb0b69253f182cda5e..81031c0379d6e3f0769cb20a3f6b23c7c1a172c9 100644
--- a/net/tools/quic/test_tools/quic_test_client.h
+++ b/net/tools/quic/test_tools/quic_test_client.h
@@ -26,6 +26,9 @@ class QuicTestClient : public ReliableQuicStream::Visitor {
QuicTestClient(IPEndPoint server_address, const string& server_hostname);
QuicTestClient(IPEndPoint server_address,
const string& server_hostname,
+ bool secure);
+ QuicTestClient(IPEndPoint server_address,
+ const string& server_hostname,
const QuicConfig& config);
virtual ~QuicTestClient();
@@ -74,7 +77,11 @@ class QuicTestClient : public ReliableQuicStream::Visitor {
const string& response_body() {return response_;}
bool connected() const;
+ void set_auto_reconnect(bool reconnect) { auto_reconnect_ = reconnect; }
+
private:
+ void Initialize(IPEndPoint address, const string& hostname);
+
IPEndPoint server_address_;
IPEndPoint client_address_;
QuicClient client_; // The actual client
@@ -91,6 +98,10 @@ class QuicTestClient : public ReliableQuicStream::Visitor {
// auto-connect exactly once before sending data. If something causes a
// connection reset, it will not automatically reconnect.
bool never_connected_;
+ bool secure_;
+ // If true, the client will always reconnect if necessary before creating a
+ // stream.
+ bool auto_reconnect_;
};
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698