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

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

Issue 2132623002: Landing Recent QUIC changes until 2016-07-02 02:45 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing comment about RPCs Created 4 years, 5 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 914c4f8ab03f15d9597bd7c916c18f38a3e893fc..ad5748d8185a4fd91a481a0702db582ee0cee5e1 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -45,18 +45,19 @@ namespace {
class RecordingProofVerifier : public ProofVerifier {
public:
// ProofVerifier interface.
- QuicAsyncStatus VerifyProof(const string& hostname,
- const uint16_t port,
- const string& server_config,
- QuicVersion quic_version,
- StringPiece chlo_hash,
- const vector<string>& certs,
- const string& cert_sct,
- const string& signature,
- const ProofVerifyContext* context,
- string* error_details,
- std::unique_ptr<ProofVerifyDetails>* details,
- ProofVerifierCallback* callback) override {
+ QuicAsyncStatus VerifyProof(
+ const string& hostname,
+ const uint16_t port,
+ const string& server_config,
+ QuicVersion quic_version,
+ StringPiece chlo_hash,
+ const vector<string>& certs,
+ const string& cert_sct,
+ const string& signature,
+ const ProofVerifyContext* context,
+ string* error_details,
+ std::unique_ptr<ProofVerifyDetails>* details,
+ std::unique_ptr<ProofVerifierCallback> callback) override {
common_name_.clear();
if (certs.empty()) {
return QUIC_FAILURE;
@@ -495,7 +496,7 @@ void QuicTestClient::WaitForResponseForMs(int timeout_ms) {
QuicConnectionPeer::GetHelper(client()->session()->connection())
->GetClock();
QuicTime end_waiting_time =
- clock->Now().Add(QuicTime::Delta::FromMicroseconds(timeout_us));
+ clock->Now() + QuicTime::Delta::FromMicroseconds(timeout_us);
while (HaveActiveStream() &&
(timeout_us < 0 || clock->Now() < end_waiting_time)) {
client_->WaitForEvents();
@@ -515,7 +516,7 @@ void QuicTestClient::WaitForInitialResponseForMs(int timeout_ms) {
QuicConnectionPeer::GetHelper(client()->session()->connection())
->GetClock();
QuicTime end_waiting_time =
- clock->Now().Add(QuicTime::Delta::FromMicroseconds(timeout_us));
+ clock->Now() + QuicTime::Delta::FromMicroseconds(timeout_us);
while (stream_ != nullptr &&
!client_->session()->IsClosedStream(stream_->id()) &&
stream_->stream_bytes_read() == 0 &&
« 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