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 // Common utilities for Quic tests | 5 // Common utilities for Quic tests |
6 | 6 |
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
11 #include <stdint.h> | 11 #include <stdint.h> |
12 | 12 |
13 #include <cstdint> | 13 #include <cstdint> |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <utility> | 16 #include <utility> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/strings/string_piece.h" | 20 #include "base/strings/string_piece.h" |
21 #include "net/base/ip_address.h" | 21 #include "net/base/ip_address.h" |
22 #include "net/quic/congestion_control/loss_detection_interface.h" | 22 #include "net/quic/core/congestion_control/loss_detection_interface.h" |
23 #include "net/quic/congestion_control/send_algorithm_interface.h" | 23 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
24 #include "net/quic/quic_client_push_promise_index.h" | 24 #include "net/quic/core/quic_client_push_promise_index.h" |
25 #include "net/quic/quic_connection.h" | 25 #include "net/quic/core/quic_connection.h" |
26 #include "net/quic/quic_framer.h" | 26 #include "net/quic/core/quic_framer.h" |
27 #include "net/quic/quic_protocol.h" | 27 #include "net/quic/core/quic_protocol.h" |
28 #include "net/quic/quic_sent_packet_manager_interface.h" | 28 #include "net/quic/core/quic_sent_packet_manager_interface.h" |
29 #include "net/quic/quic_server_session_base.h" | 29 #include "net/quic/core/quic_server_session_base.h" |
30 #include "net/quic/quic_session.h" | 30 #include "net/quic/core/quic_session.h" |
31 #include "net/quic/quic_simple_buffer_allocator.h" | 31 #include "net/quic/core/quic_simple_buffer_allocator.h" |
32 #include "net/quic/test_tools/mock_clock.h" | 32 #include "net/quic/test_tools/mock_clock.h" |
33 #include "net/quic/test_tools/mock_random.h" | 33 #include "net/quic/test_tools/mock_random.h" |
34 #include "net/spdy/spdy_framer.h" | 34 #include "net/spdy/spdy_framer.h" |
35 #include "net/tools/quic/quic_dispatcher.h" | 35 #include "net/tools/quic/quic_dispatcher.h" |
36 #include "net/tools/quic/quic_per_connection_packet_writer.h" | 36 #include "net/tools/quic/quic_per_connection_packet_writer.h" |
37 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" | 37 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" |
38 #include "testing/gmock/include/gmock/gmock.h" | 38 #include "testing/gmock/include/gmock/gmock.h" |
39 | 39 |
40 using base::StringPiece; | 40 using base::StringPiece; |
41 | 41 |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 TestQuicSpdyServerSession** server_session); | 1017 TestQuicSpdyServerSession** server_session); |
1018 | 1018 |
1019 // Helper to generate client side stream ids, generalizes | 1019 // Helper to generate client side stream ids, generalizes |
1020 // kClientDataStreamId1 etc. above. | 1020 // kClientDataStreamId1 etc. above. |
1021 QuicStreamId QuicClientDataStreamId(int i); | 1021 QuicStreamId QuicClientDataStreamId(int i); |
1022 | 1022 |
1023 } // namespace test | 1023 } // namespace test |
1024 } // namespace net | 1024 } // namespace net |
1025 | 1025 |
1026 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 1026 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |