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/chromium/spdy_proxy_client_socket.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "net/base/address_list.h" | 15 #include "net/base/address_list.h" |
16 #include "net/base/test_completion_callback.h" | 16 #include "net/base/test_completion_callback.h" |
17 #include "net/base/winsock_init.h" | 17 #include "net/base/winsock_init.h" |
18 #include "net/dns/mock_host_resolver.h" | 18 #include "net/dns/mock_host_resolver.h" |
19 #include "net/http/http_response_headers.h" | 19 #include "net/http/http_response_headers.h" |
20 #include "net/http/http_response_info.h" | 20 #include "net/http/http_response_info.h" |
21 #include "net/log/net_log_event_type.h" | 21 #include "net/log/net_log_event_type.h" |
22 #include "net/log/net_log_source.h" | 22 #include "net/log/net_log_source.h" |
23 #include "net/log/test_net_log.h" | 23 #include "net/log/test_net_log.h" |
24 #include "net/log/test_net_log_entry.h" | 24 #include "net/log/test_net_log_entry.h" |
25 #include "net/log/test_net_log_util.h" | 25 #include "net/log/test_net_log_util.h" |
26 #include "net/socket/client_socket_factory.h" | 26 #include "net/socket/client_socket_factory.h" |
27 #include "net/socket/socket_test_util.h" | 27 #include "net/socket/socket_test_util.h" |
28 #include "net/socket/tcp_client_socket.h" | 28 #include "net/socket/tcp_client_socket.h" |
29 #include "net/spdy/buffered_spdy_framer.h" | 29 #include "net/spdy/chromium/buffered_spdy_framer.h" |
30 #include "net/spdy/spdy_http_utils.h" | 30 #include "net/spdy/chromium/spdy_http_utils.h" |
31 #include "net/spdy/spdy_protocol.h" | 31 #include "net/spdy/chromium/spdy_session_pool.h" |
32 #include "net/spdy/spdy_session_pool.h" | 32 #include "net/spdy/chromium/spdy_test_util_common.h" |
33 #include "net/spdy/spdy_test_util_common.h" | 33 #include "net/spdy/core/spdy_protocol.h" |
34 #include "net/test/cert_test_util.h" | 34 #include "net/test/cert_test_util.h" |
35 #include "net/test/gtest_util.h" | 35 #include "net/test/gtest_util.h" |
36 #include "net/test/test_data_directory.h" | 36 #include "net/test/test_data_directory.h" |
37 #include "testing/gmock/include/gmock/gmock.h" | 37 #include "testing/gmock/include/gmock/gmock.h" |
38 #include "testing/gtest/include/gtest/gtest.h" | 38 #include "testing/gtest/include/gtest/gtest.h" |
39 #include "testing/platform_test.h" | 39 #include "testing/platform_test.h" |
40 | 40 |
41 using net::test::IsError; | 41 using net::test::IsError; |
42 using net::test::IsOk; | 42 using net::test::IsOk; |
43 | 43 |
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 | 1355 |
1356 EXPECT_FALSE(sock_.get()); | 1356 EXPECT_FALSE(sock_.get()); |
1357 EXPECT_TRUE(read_callback.have_result()); | 1357 EXPECT_TRUE(read_callback.have_result()); |
1358 EXPECT_FALSE(write_callback_.have_result()); | 1358 EXPECT_FALSE(write_callback_.have_result()); |
1359 | 1359 |
1360 // Let the RST_STREAM write while |rst| is in-scope. | 1360 // Let the RST_STREAM write while |rst| is in-scope. |
1361 base::RunLoop().RunUntilIdle(); | 1361 base::RunLoop().RunUntilIdle(); |
1362 } | 1362 } |
1363 | 1363 |
1364 } // namespace net | 1364 } // namespace net |
OLD | NEW |