OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/quic/chromium/bidirectional_stream_quic_impl.h" | 5 #include "net/quic/chromium/bidirectional_stream_quic_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "net/base/ip_address.h" | 14 #include "net/base/ip_address.h" |
15 #include "net/base/load_timing_info.h" | 15 #include "net/base/load_timing_info.h" |
16 #include "net/base/load_timing_info_test_util.h" | 16 #include "net/base/load_timing_info_test_util.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/http/bidirectional_stream_request_info.h" | 18 #include "net/http/bidirectional_stream_request_info.h" |
19 #include "net/http/transport_security_state.h" | 19 #include "net/http/transport_security_state.h" |
20 #include "net/log/net_log_event_type.h" | 20 #include "net/log/net_log_event_type.h" |
21 #include "net/log/test_net_log.h" | 21 #include "net/log/test_net_log.h" |
22 #include "net/log/test_net_log_util.h" | 22 #include "net/log/test_net_log_util.h" |
23 #include "net/quic/chromium/mock_crypto_client_stream_factory.h" | 23 #include "net/quic/chromium/mock_crypto_client_stream_factory.h" |
24 #include "net/quic/chromium/quic_chromium_alarm_factory.h" | 24 #include "net/quic/chromium/quic_chromium_alarm_factory.h" |
25 #include "net/quic/chromium/quic_chromium_connection_helper.h" | 25 #include "net/quic/chromium/quic_chromium_connection_helper.h" |
26 #include "net/quic/chromium/quic_chromium_packet_reader.h" | 26 #include "net/quic/chromium/quic_chromium_packet_reader.h" |
27 #include "net/quic/chromium/quic_chromium_packet_writer.h" | 27 #include "net/quic/chromium/quic_chromium_packet_writer.h" |
28 #include "net/quic/chromium/quic_http_utils.h" | 28 #include "net/quic/chromium/quic_http_utils.h" |
| 29 #include "net/quic/chromium/quic_server_info.h" |
29 #include "net/quic/chromium/quic_test_packet_maker.h" | 30 #include "net/quic/chromium/quic_test_packet_maker.h" |
30 #include "net/quic/core/crypto/crypto_protocol.h" | 31 #include "net/quic/core/crypto/crypto_protocol.h" |
31 #include "net/quic/core/crypto/quic_decrypter.h" | 32 #include "net/quic/core/crypto/quic_decrypter.h" |
32 #include "net/quic/core/crypto/quic_encrypter.h" | 33 #include "net/quic/core/crypto/quic_encrypter.h" |
33 #include "net/quic/core/crypto/quic_server_info.h" | |
34 #include "net/quic/core/quic_connection.h" | 34 #include "net/quic/core/quic_connection.h" |
35 #include "net/quic/core/spdy_utils.h" | 35 #include "net/quic/core/spdy_utils.h" |
36 #include "net/quic/test_tools/crypto_test_utils.h" | 36 #include "net/quic/test_tools/crypto_test_utils.h" |
37 #include "net/quic/test_tools/mock_clock.h" | 37 #include "net/quic/test_tools/mock_clock.h" |
38 #include "net/quic/test_tools/mock_random.h" | 38 #include "net/quic/test_tools/mock_random.h" |
39 #include "net/quic/test_tools/quic_connection_peer.h" | 39 #include "net/quic/test_tools/quic_connection_peer.h" |
40 #include "net/quic/test_tools/quic_test_utils.h" | 40 #include "net/quic/test_tools/quic_test_utils.h" |
41 #include "net/quic/test_tools/test_task_runner.h" | 41 #include "net/quic/test_tools/test_task_runner.h" |
42 #include "net/socket/socket_test_util.h" | 42 #include "net/socket/socket_test_util.h" |
43 #include "net/test/gtest_util.h" | 43 #include "net/test/gtest_util.h" |
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1842 | 1842 |
1843 base::RunLoop().RunUntilIdle(); | 1843 base::RunLoop().RunUntilIdle(); |
1844 | 1844 |
1845 EXPECT_EQ(1, delegate->on_data_read_count()); | 1845 EXPECT_EQ(1, delegate->on_data_read_count()); |
1846 EXPECT_EQ(0, delegate->on_data_sent_count()); | 1846 EXPECT_EQ(0, delegate->on_data_sent_count()); |
1847 } | 1847 } |
1848 | 1848 |
1849 } // namespace test | 1849 } // namespace test |
1850 | 1850 |
1851 } // namespace net | 1851 } // namespace net |
OLD | NEW |