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

Side by Side Diff: net/spdy/spdy_proxy_client_socket_unittest.cc

Issue 987123002: Advertise HTTP/2 support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session_pool_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_proxy_client_socket.h" 5 #include "net/spdy/spdy_proxy_client_socket.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "net/base/address_list.h" 10 #include "net/base/address_list.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 HostPortPair endpoint_host_port_pair_; 135 HostPortPair endpoint_host_port_pair_;
136 ProxyServer proxy_; 136 ProxyServer proxy_;
137 SpdySessionKey endpoint_spdy_session_key_; 137 SpdySessionKey endpoint_spdy_session_key_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocketTest); 139 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocketTest);
140 }; 140 };
141 141
142 INSTANTIATE_TEST_CASE_P( 142 INSTANTIATE_TEST_CASE_P(
143 NextProto, 143 NextProto,
144 SpdyProxyClientSocketTest, 144 SpdyProxyClientSocketTest,
145 testing::Values(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15)); 145 testing::Values(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15, kProtoSPDY4));
146 146
147 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest() 147 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest()
148 : spdy_util_(GetParam()), 148 : spdy_util_(GetParam()),
149 session_(NULL), 149 session_(NULL),
150 read_buf_(NULL), 150 read_buf_(NULL),
151 session_deps_(GetParam()), 151 session_deps_(GetParam()),
152 connect_data_(SYNCHRONOUS, OK), 152 connect_data_(SYNCHRONOUS, OK),
153 framer_(spdy_util_.spdy_version(), false), 153 framer_(spdy_util_.spdy_version(), false),
154 user_agent_(kUserAgent), 154 user_agent_(kUserAgent),
155 url_(kRequestUrl), 155 url_(kRequestUrl),
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1373
1374 EXPECT_FALSE(sock_.get()); 1374 EXPECT_FALSE(sock_.get());
1375 EXPECT_TRUE(read_callback.have_result()); 1375 EXPECT_TRUE(read_callback.have_result());
1376 EXPECT_FALSE(write_callback_.have_result()); 1376 EXPECT_FALSE(write_callback_.have_result());
1377 1377
1378 // Let the RST_STREAM write while |rst| is in-scope. 1378 // Let the RST_STREAM write while |rst| is in-scope.
1379 base::MessageLoop::current()->RunUntilIdle(); 1379 base::MessageLoop::current()->RunUntilIdle();
1380 } 1380 }
1381 1381
1382 } // namespace net 1382 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698