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

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

Issue 683263003: Turning off CID truncation for proxied connections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Protect_UpdateRTT_from_negative_deltas_78580114
Patch Set: Created 6 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/quic_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 e1a27403365b987acf01b639a412e01b0351a953..16fa4eff270b63dce6f588fd6814b08048119d09 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -221,6 +221,11 @@ void QuicTestClient::Initialize(bool secure) {
proof_verifier_ = nullptr;
ClearPerRequestState();
ExpectCertificates(secure_);
+ // As chrome will generally do this, we want it to be the default when it's
+ // not overridden.
+ if (!client_->config()->HasSetBytesForConnectionIdToSend()) {
+ client_->config()->SetBytesForConnectionIdToSend(0);
+ }
}
void QuicTestClient::ExpectCertificates(bool on) {
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698