OLD | NEW |
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 Loading... |
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(kProtoDeprecatedSPDY2, | 145 testing::Values(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15)); |
146 kProtoSPDY3, kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15)); | |
147 | 146 |
148 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest() | 147 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest() |
149 : spdy_util_(GetParam()), | 148 : spdy_util_(GetParam()), |
150 session_(NULL), | 149 session_(NULL), |
151 read_buf_(NULL), | 150 read_buf_(NULL), |
152 session_deps_(GetParam()), | 151 session_deps_(GetParam()), |
153 connect_data_(SYNCHRONOUS, OK), | 152 connect_data_(SYNCHRONOUS, OK), |
154 framer_(spdy_util_.spdy_version(), false), | 153 framer_(spdy_util_.spdy_version(), false), |
155 user_agent_(kUserAgent), | 154 user_agent_(kUserAgent), |
156 url_(kRequestUrl), | 155 url_(kRequestUrl), |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 | 1373 |
1375 EXPECT_FALSE(sock_.get()); | 1374 EXPECT_FALSE(sock_.get()); |
1376 EXPECT_TRUE(read_callback.have_result()); | 1375 EXPECT_TRUE(read_callback.have_result()); |
1377 EXPECT_FALSE(write_callback_.have_result()); | 1376 EXPECT_FALSE(write_callback_.have_result()); |
1378 | 1377 |
1379 // Let the RST_STREAM write while |rst| is in-scope. | 1378 // Let the RST_STREAM write while |rst| is in-scope. |
1380 base::MessageLoop::current()->RunUntilIdle(); | 1379 base::MessageLoop::current()->RunUntilIdle(); |
1381 } | 1380 } |
1382 | 1381 |
1383 } // namespace net | 1382 } // namespace net |
OLD | NEW |