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

Unified Diff: net/quic/quic_end_to_end_unittest.cc

Issue 1808303005: QUIC - extend origin-to-force-quic-on command line option to accept list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/quic/quic_end_to_end_unittest.cc
diff --git a/net/quic/quic_end_to_end_unittest.cc b/net/quic/quic_end_to_end_unittest.cc
index 9ec8731a62d1ff5c5feb4136bc61df01ce602195..dffc27e6f7bde04c8e86ec31047e3ccda74bc4aa 100644
--- a/net/quic/quic_end_to_end_unittest.cc
+++ b/net/quic/quic_end_to_end_unittest.cc
@@ -159,8 +159,9 @@ class QuicEndToEndTest : public ::testing::TestWithParam<TestParams> {
// To simplify the test, and avoid the race with the HTTP request, we force
// QUIC for these requests.
- params_.origin_to_force_quic_on =
- HostPortPair::FromString("test.example.com:443");
+ for (const char* host : {"test.example.com:443"}) {
+ params_.origins_to_force_quic_on.insert(HostPortPair::FromString(host));
Ryan Hamilton 2016/03/20 22:46:53 nit: do we really need a loop here?
ramant (doing other things) 2016/03/21 17:23:48 Done.
+ }
transaction_factory_.reset(new TestTransactionFactory(params_));
}

Powered by Google App Engine
This is Rietveld 408576698