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

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

Issue 2141993002: Remove many-many SpdyMajorVersion and NextProto arguments and members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove OnSynStream() and OnSynReply(). Created 4 years, 5 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_proxy_client_socket.cc ('k') | net/spdy/spdy_session.h » ('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 <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "net/base/address_list.h" 14 #include "net/base/address_list.h"
15 #include "net/base/test_completion_callback.h" 15 #include "net/base/test_completion_callback.h"
16 #include "net/base/winsock_init.h" 16 #include "net/base/winsock_init.h"
17 #include "net/dns/mock_host_resolver.h" 17 #include "net/dns/mock_host_resolver.h"
18 #include "net/http/http_response_headers.h" 18 #include "net/http/http_response_headers.h"
19 #include "net/http/http_response_info.h" 19 #include "net/http/http_response_info.h"
20 #include "net/log/net_log.h" 20 #include "net/log/net_log.h"
21 #include "net/log/test_net_log.h" 21 #include "net/log/test_net_log.h"
22 #include "net/log/test_net_log_entry.h" 22 #include "net/log/test_net_log_entry.h"
23 #include "net/log/test_net_log_util.h" 23 #include "net/log/test_net_log_util.h"
24 #include "net/socket/client_socket_factory.h" 24 #include "net/socket/client_socket_factory.h"
25 #include "net/socket/next_proto.h"
26 #include "net/socket/socket_test_util.h" 25 #include "net/socket/socket_test_util.h"
27 #include "net/socket/tcp_client_socket.h" 26 #include "net/socket/tcp_client_socket.h"
28 #include "net/spdy/buffered_spdy_framer.h" 27 #include "net/spdy/buffered_spdy_framer.h"
29 #include "net/spdy/spdy_http_utils.h" 28 #include "net/spdy/spdy_http_utils.h"
30 #include "net/spdy/spdy_protocol.h" 29 #include "net/spdy/spdy_protocol.h"
31 #include "net/spdy/spdy_session_pool.h" 30 #include "net/spdy/spdy_session_pool.h"
32 #include "net/spdy/spdy_test_util_common.h" 31 #include "net/spdy/spdy_test_util_common.h"
33 #include "net/test/gtest_util.h" 32 #include "net/test/gtest_util.h"
34 #include "testing/gmock/include/gmock/gmock.h" 33 #include "testing/gmock/include/gmock/gmock.h"
35 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 160
162 INSTANTIATE_TEST_CASE_P(ProtoPlusDepend, 161 INSTANTIATE_TEST_CASE_P(ProtoPlusDepend,
163 SpdyProxyClientSocketTest, 162 SpdyProxyClientSocketTest,
164 testing::Values(kTestCaseNoPriorityDependencies, 163 testing::Values(kTestCaseNoPriorityDependencies,
165 kTestCasePriorityDependencies)); 164 kTestCasePriorityDependencies));
166 165
167 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest() 166 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest()
168 : spdy_util_(GetDependenciesFromPriority()), 167 : spdy_util_(GetDependenciesFromPriority()),
169 read_buf_(NULL), 168 read_buf_(NULL),
170 connect_data_(SYNCHRONOUS, OK), 169 connect_data_(SYNCHRONOUS, OK),
171 framer_(HTTP2), 170 framer_(),
172 user_agent_(kUserAgent), 171 user_agent_(kUserAgent),
173 url_(kRequestUrl), 172 url_(kRequestUrl),
174 proxy_host_port_(kProxyHost, kProxyPort), 173 proxy_host_port_(kProxyHost, kProxyPort),
175 endpoint_host_port_pair_(kOriginHost, kOriginPort), 174 endpoint_host_port_pair_(kOriginHost, kOriginPort),
176 proxy_(ProxyServer::SCHEME_HTTPS, proxy_host_port_), 175 proxy_(ProxyServer::SCHEME_HTTPS, proxy_host_port_),
177 endpoint_spdy_session_key_(endpoint_host_port_pair_, 176 endpoint_spdy_session_key_(endpoint_host_port_pair_,
178 proxy_, 177 proxy_,
179 PRIVACY_MODE_DISABLED) { 178 PRIVACY_MODE_DISABLED) {
180 session_deps_.net_log = net_log_.bound().net_log(); 179 session_deps_.net_log = net_log_.bound().net_log();
181 session_deps_.enable_priority_dependencies = GetDependenciesFromPriority(); 180 session_deps_.enable_priority_dependencies = GetDependenciesFromPriority();
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 1374
1376 EXPECT_FALSE(sock_.get()); 1375 EXPECT_FALSE(sock_.get());
1377 EXPECT_TRUE(read_callback.have_result()); 1376 EXPECT_TRUE(read_callback.have_result());
1378 EXPECT_FALSE(write_callback_.have_result()); 1377 EXPECT_FALSE(write_callback_.have_result());
1379 1378
1380 // Let the RST_STREAM write while |rst| is in-scope. 1379 // Let the RST_STREAM write while |rst| is in-scope.
1381 base::RunLoop().RunUntilIdle(); 1380 base::RunLoop().RunUntilIdle();
1382 } 1381 }
1383 1382
1384 } // namespace net 1383 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698