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

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

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 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
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | net/tools/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_client.cc
diff --git a/net/tools/quic/test_tools/quic_test_client.cc b/net/tools/quic/test_tools/quic_test_client.cc
index b4094a48fd173c76f40682beba81dba01eed2c16..c188d5e0eda08abd1f72857a84141d1d14e0feae 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -101,16 +101,16 @@ class QuicEpollClient : public QuicClient {
QuicEpollClient(IPEndPoint server_address,
const string& server_hostname,
- const QuicVersion version)
- : Super(server_address, server_hostname, version, false),
+ const QuicVersionVector& supported_versions)
+ : Super(server_address, server_hostname, supported_versions, false),
override_guid_(0), test_writer_(NULL) {
}
QuicEpollClient(IPEndPoint server_address,
const string& server_hostname,
const QuicConfig& config,
- const QuicVersion version)
- : Super(server_address, server_hostname, config, version),
+ const QuicVersionVector& supported_versions)
+ : Super(server_address, server_hostname, config, supported_versions),
override_guid_(0), test_writer_(NULL) {
}
@@ -146,16 +146,16 @@ class QuicEpollClient : public QuicClient {
};
QuicTestClient::QuicTestClient(IPEndPoint address, const string& hostname,
- const QuicVersion version)
- : client_(new QuicEpollClient(address, hostname, version)) {
+ const QuicVersionVector& supported_versions)
+ : client_(new QuicEpollClient(address, hostname, supported_versions)) {
Initialize(address, hostname, true);
}
QuicTestClient::QuicTestClient(IPEndPoint address,
const string& hostname,
bool secure,
- const QuicVersion version)
- : client_(new QuicEpollClient(address, hostname, version)) {
+ const QuicVersionVector& supported_versions)
+ : client_(new QuicEpollClient(address, hostname, supported_versions)) {
Initialize(address, hostname, secure);
}
@@ -163,8 +163,9 @@ QuicTestClient::QuicTestClient(IPEndPoint address,
const string& hostname,
bool secure,
const QuicConfig& config,
- const QuicVersion version)
- : client_(new QuicEpollClient(address, hostname, config, version)) {
+ const QuicVersionVector& supported_versions)
+ : client_(new QuicEpollClient(address, hostname, config,
+ supported_versions)) {
Initialize(address, hostname, secure);
}
@@ -303,7 +304,9 @@ void QuicTestClient::ResetConnection() {
}
void QuicTestClient::Disconnect() {
- client_->Disconnect();
+ if (client_->connected()) {
+ client_->Disconnect();
+ }
connect_attempted_ = false;
}
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | net/tools/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698