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 <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.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/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "net/base/chunked_upload_data_stream.h" | 15 #include "net/base/chunked_upload_data_stream.h" |
16 #include "net/base/socket_performance_watcher.h" | |
17 #include "net/base/socket_performance_watcher_factory.h" | |
18 #include "net/base/test_completion_callback.h" | 16 #include "net/base/test_completion_callback.h" |
19 #include "net/base/test_data_directory.h" | 17 #include "net/base/test_data_directory.h" |
20 #include "net/cert/mock_cert_verifier.h" | 18 #include "net/cert/mock_cert_verifier.h" |
21 #include "net/cert/multi_log_ct_verifier.h" | 19 #include "net/cert/multi_log_ct_verifier.h" |
22 #include "net/dns/mock_host_resolver.h" | 20 #include "net/dns/mock_host_resolver.h" |
23 #include "net/http/http_auth_handler_factory.h" | 21 #include "net/http/http_auth_handler_factory.h" |
24 #include "net/http/http_network_session.h" | 22 #include "net/http/http_network_session.h" |
25 #include "net/http/http_network_transaction.h" | 23 #include "net/http/http_network_transaction.h" |
26 #include "net/http/http_server_properties_impl.h" | 24 #include "net/http/http_server_properties_impl.h" |
27 #include "net/http/http_stream.h" | 25 #include "net/http/http_stream.h" |
(...skipping 12 matching lines...) Expand all Loading... |
40 #include "net/quic/quic_framer.h" | 38 #include "net/quic/quic_framer.h" |
41 #include "net/quic/quic_http_utils.h" | 39 #include "net/quic/quic_http_utils.h" |
42 #include "net/quic/test_tools/crypto_test_utils.h" | 40 #include "net/quic/test_tools/crypto_test_utils.h" |
43 #include "net/quic/test_tools/mock_clock.h" | 41 #include "net/quic/test_tools/mock_clock.h" |
44 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" | 42 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" |
45 #include "net/quic/test_tools/mock_random.h" | 43 #include "net/quic/test_tools/mock_random.h" |
46 #include "net/quic/test_tools/quic_test_packet_maker.h" | 44 #include "net/quic/test_tools/quic_test_packet_maker.h" |
47 #include "net/quic/test_tools/quic_test_utils.h" | 45 #include "net/quic/test_tools/quic_test_utils.h" |
48 #include "net/socket/client_socket_factory.h" | 46 #include "net/socket/client_socket_factory.h" |
49 #include "net/socket/mock_client_socket_pool_manager.h" | 47 #include "net/socket/mock_client_socket_pool_manager.h" |
| 48 #include "net/socket/socket_performance_watcher.h" |
| 49 #include "net/socket/socket_performance_watcher_factory.h" |
50 #include "net/socket/socket_test_util.h" | 50 #include "net/socket/socket_test_util.h" |
51 #include "net/socket/ssl_client_socket.h" | 51 #include "net/socket/ssl_client_socket.h" |
52 #include "net/spdy/spdy_frame_builder.h" | 52 #include "net/spdy/spdy_frame_builder.h" |
53 #include "net/spdy/spdy_framer.h" | 53 #include "net/spdy/spdy_framer.h" |
54 #include "net/ssl/ssl_config_service_defaults.h" | 54 #include "net/ssl/ssl_config_service_defaults.h" |
55 #include "net/test/cert_test_util.h" | 55 #include "net/test/cert_test_util.h" |
56 #include "testing/gtest/include/gtest/gtest.h" | 56 #include "testing/gtest/include/gtest/gtest.h" |
57 #include "testing/platform_test.h" | 57 #include "testing/platform_test.h" |
58 #include "url/gurl.h" | 58 #include "url/gurl.h" |
59 | 59 |
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2415 std::unique_ptr<HttpNetworkTransaction> trans( | 2415 std::unique_ptr<HttpNetworkTransaction> trans( |
2416 new HttpNetworkTransaction(DEFAULT_PRIORITY, session_.get())); | 2416 new HttpNetworkTransaction(DEFAULT_PRIORITY, session_.get())); |
2417 TestCompletionCallback callback; | 2417 TestCompletionCallback callback; |
2418 int rv = trans->Start(&request_, callback.callback(), net_log_.bound()); | 2418 int rv = trans->Start(&request_, callback.callback(), net_log_.bound()); |
2419 EXPECT_EQ(ERR_IO_PENDING, rv); | 2419 EXPECT_EQ(ERR_IO_PENDING, rv); |
2420 EXPECT_NE(OK, callback.WaitForResult()); | 2420 EXPECT_NE(OK, callback.WaitForResult()); |
2421 } | 2421 } |
2422 | 2422 |
2423 } // namespace test | 2423 } // namespace test |
2424 } // namespace net | 2424 } // namespace net |
OLD | NEW |