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

Unified Diff: chrome/browser/io_thread_unittest.cc

Issue 689923002: Add Spdy4Experiment group. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« chrome/browser/io_thread.cc ('K') | « chrome/browser/io_thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread_unittest.cc
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc
index e383dae55360bd631aaf01784b3bb73441cfeef1..14a4694d11433def1205aa62845a96613e89a5f4 100644
--- a/chrome/browser/io_thread_unittest.cc
+++ b/chrome/browser/io_thread_unittest.cc
@@ -100,6 +100,19 @@ TEST_F(IOThreadTest, SpdyFieldTrialSpdy4Enabled) {
EXPECT_TRUE(use_alternate_protocols);
}
+TEST_F(IOThreadTest, SpdyFieldTrialSpdy4Experiment) {
+ bool use_alternate_protocols = false;
+ IOThreadPeer::ConfigureSpdyFromTrial("Spdy4Experiment", &globals_);
+ EXPECT_THAT(globals_.next_protos,
+ ElementsAre(net::kProtoHTTP11,
+ net::kProtoQUIC1SPDY3,
+ net::kProtoSPDY3,
+ net::kProtoSPDY31,
+ net::kProtoSPDY4));
+ globals_.use_alternate_protocols.CopyToIfSet(&use_alternate_protocols);
+ EXPECT_TRUE(use_alternate_protocols);
+}
+
TEST_F(IOThreadTest, SpdyFieldTrialSpdy4Control) {
bool use_alternate_protocols = false;
IOThreadPeer::ConfigureSpdyFromTrial("Spdy4Control", &globals_);
« chrome/browser/io_thread.cc ('K') | « chrome/browser/io_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698