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

Side by Side Diff: net/quic/test_tools/quic_test_utils.h

Issue 2541673002: Rename quic_protocol to quic_packets. No behavior change. (Closed)
Patch Set: Rollback accidentally wrong CL Created 4 years 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/quic/test_tools/quic_test_packet_maker.h ('k') | net/quic/test_tools/simple_quic_framer.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 // 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/core/congestion_control/loss_detection_interface.h" 22 #include "net/quic/core/congestion_control/loss_detection_interface.h"
23 #include "net/quic/core/congestion_control/send_algorithm_interface.h" 23 #include "net/quic/core/congestion_control/send_algorithm_interface.h"
24 #include "net/quic/core/quic_client_push_promise_index.h" 24 #include "net/quic/core/quic_client_push_promise_index.h"
25 #include "net/quic/core/quic_connection.h" 25 #include "net/quic/core/quic_connection.h"
26 #include "net/quic/core/quic_connection_close_delegate_interface.h" 26 #include "net/quic/core/quic_connection_close_delegate_interface.h"
27 #include "net/quic/core/quic_framer.h" 27 #include "net/quic/core/quic_framer.h"
28 #include "net/quic/core/quic_iovector.h" 28 #include "net/quic/core/quic_iovector.h"
29 #include "net/quic/core/quic_protocol.h" 29 #include "net/quic/core/quic_packets.h"
30 #include "net/quic/core/quic_sent_packet_manager_interface.h" 30 #include "net/quic/core/quic_sent_packet_manager_interface.h"
31 #include "net/quic/core/quic_server_session_base.h" 31 #include "net/quic/core/quic_server_session_base.h"
32 #include "net/quic/core/quic_session.h" 32 #include "net/quic/core/quic_session.h"
33 #include "net/quic/core/quic_simple_buffer_allocator.h" 33 #include "net/quic/core/quic_simple_buffer_allocator.h"
34 #include "net/quic/test_tools/mock_clock.h" 34 #include "net/quic/test_tools/mock_clock.h"
35 #include "net/quic/test_tools/mock_random.h" 35 #include "net/quic/test_tools/mock_random.h"
36 #include "net/spdy/spdy_framer.h" 36 #include "net/spdy/spdy_framer.h"
37 #include "net/tools/quic/quic_dispatcher.h" 37 #include "net/tools/quic/quic_dispatcher.h"
38 #include "net/tools/quic/quic_per_connection_packet_writer.h" 38 #include "net/tools/quic/quic_per_connection_packet_writer.h"
39 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" 39 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h"
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 iov->iov_base = const_cast<char*>(str.data()); 1055 iov->iov_base = const_cast<char*>(str.data());
1056 iov->iov_len = static_cast<size_t>(str.size()); 1056 iov->iov_len = static_cast<size_t>(str.size());
1057 QuicIOVector quic_iov(iov, 1, str.size()); 1057 QuicIOVector quic_iov(iov, 1, str.size());
1058 return quic_iov; 1058 return quic_iov;
1059 } 1059 }
1060 1060
1061 } // namespace test 1061 } // namespace test
1062 } // namespace net 1062 } // namespace net
1063 1063
1064 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 1064 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_packet_maker.h ('k') | net/quic/test_tools/simple_quic_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698