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

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

Issue 1746803003: Add 3 Quic e2e tests of server push. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115218980
Patch Set: Created 4 years, 10 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') | no next file » | 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 7e6d4137bbf55c4b21c11df01498b00f58fca850..cf1abece40559da51bd7d7e9895a7e42baca5196 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -181,7 +181,9 @@ QuicTestClient::QuicTestClient(IPEndPoint server_address,
config,
supported_versions,
&epoll_server_)),
- allow_bidirectional_data_(false) {
+ allow_bidirectional_data_(false),
+ num_requests_(0),
+ num_responses_(0) {
Initialize();
}
@@ -273,6 +275,7 @@ ssize_t QuicTestClient::GetOrCreateStreamAndSendRequest(
spdy_headers[":authority"] = client_->server_id().host();
}
ret = stream->SendRequest(spdy_headers, body, fin);
+ ++num_requests_;
} else {
stream->SendBody(body.as_string(), fin, delegate);
ret = body.length();
@@ -576,6 +579,7 @@ void QuicTestClient::OnClose(QuicSpdyStream* stream) {
response_header_size_ = headers_.GetSizeForWriteBuffer();
response_body_size_ = stream_->data().size();
stream_ = nullptr;
+ ++num_responses_;
}
bool QuicTestClient::CheckVary(const SpdyHeaderBlock& client_request,
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698