summaryrefslogtreecommitdiffstats
path: root/net/http/http_alternate_protocols_unittest.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 18:06:06 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 18:06:06 +0000
commit31e2c69eb9a9cf4e59f08b483f7cd849631e7da4 (patch)
treeb3aa94737e007c402e16f761af2c8b11796a360c /net/http/http_alternate_protocols_unittest.cc
parent485392bfbc7a311782c2663b02f28a64f1bcc4be (diff)
downloadchromium_src-31e2c69eb9a9cf4e59f08b483f7cd849631e7da4.zip
chromium_src-31e2c69eb9a9cf4e59f08b483f7cd849631e7da4.tar.gz
chromium_src-31e2c69eb9a9cf4e59f08b483f7cd849631e7da4.tar.bz2
SPDY: Alternate-Protocol changes.
Change chromium to expect npn-spdy/1 instead of npn-spdy to match server-side changes. Move the use of Alternate-Protocol to be behind command line flag: "--use-alternate-protocols". Review URL: http://codereview.chromium.org/1593029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_alternate_protocols_unittest.cc')
-rw-r--r--net/http/http_alternate_protocols_unittest.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/http/http_alternate_protocols_unittest.cc b/net/http/http_alternate_protocols_unittest.cc
index 7f94534..f725fc0 100644
--- a/net/http/http_alternate_protocols_unittest.cc
+++ b/net/http/http_alternate_protocols_unittest.cc
@@ -19,14 +19,13 @@ TEST(HttpAlternateProtocols, Basic) {
test_host_port_pair.port = 80;
EXPECT_FALSE(
alternate_protocols.HasAlternateProtocolFor(test_host_port_pair));
- alternate_protocols.SetAlternateProtocolFor(test_host_port_pair,
- 443,
- HttpAlternateProtocols::NPN_SPDY);
+ alternate_protocols.SetAlternateProtocolFor(
+ test_host_port_pair, 443, HttpAlternateProtocols::NPN_SPDY_1);
ASSERT_TRUE(alternate_protocols.HasAlternateProtocolFor(test_host_port_pair));
const HttpAlternateProtocols::PortProtocolPair alternate =
alternate_protocols.GetAlternateProtocolFor(test_host_port_pair);
EXPECT_EQ(443, alternate.port);
- EXPECT_EQ(HttpAlternateProtocols::NPN_SPDY, alternate.protocol);
+ EXPECT_EQ(HttpAlternateProtocols::NPN_SPDY_1, alternate.protocol);
}
TEST(HttpAlternateProtocols, SetBroken) {
@@ -43,7 +42,7 @@ TEST(HttpAlternateProtocols, SetBroken) {
alternate_protocols.SetAlternateProtocolFor(
test_host_port_pair,
1234,
- HttpAlternateProtocols::NPN_SPDY),
+ HttpAlternateProtocols::NPN_SPDY_1),
alternate = alternate_protocols.GetAlternateProtocolFor(test_host_port_pair);
EXPECT_EQ(HttpAlternateProtocols::BROKEN, alternate.protocol)
<< "Second attempt should be ignored.";