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

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

Issue 454263002: QUIC - clean up changes to keep in sync with internal source tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 months 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
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 <string> 10 #include <string>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 QuicSequenceNumberLength sequence_number_length, 83 QuicSequenceNumberLength sequence_number_length,
84 InFecGroup is_in_fec_group, 84 InFecGroup is_in_fec_group,
85 size_t* payload_length); 85 size_t* payload_length);
86 86
87 // Returns QuicConfig set to default values. 87 // Returns QuicConfig set to default values.
88 QuicConfig DefaultQuicConfig(); 88 QuicConfig DefaultQuicConfig();
89 89
90 // Returns a version vector consisting of |version|. 90 // Returns a version vector consisting of |version|.
91 QuicVersionVector SupportedVersions(QuicVersion version); 91 QuicVersionVector SupportedVersions(QuicVersion version);
92 92
93 // Testing convenience method to construct a QuicAckFrame with all packets 93 // Testing convenience method to construct a QuicAckFrame with entropy_hash set
94 // from least_unacked to largest_observed acked. 94 // to 0 and largest_observed from peer set to |largest_observed|.
95 QuicAckFrame MakeAckFrame(QuicPacketSequenceNumber largest_observed); 95 QuicAckFrame MakeAckFrame(QuicPacketSequenceNumber largest_observed);
96 96
97 // Testing convenience method to construct a QuicAckFrame with |num_nack_ranges| 97 // Testing convenience method to construct a QuicAckFrame with |num_nack_ranges|
98 // nack ranges of width 1 packet, starting from |least_unacked|. 98 // nack ranges of width 1 packet, starting from |least_unacked|.
99 QuicAckFrame MakeAckFrameWithNackRanges(size_t num_nack_ranges, 99 QuicAckFrame MakeAckFrameWithNackRanges(size_t num_nack_ranges,
100 QuicPacketSequenceNumber least_unacked); 100 QuicPacketSequenceNumber least_unacked);
101 101
102 // Returns a SerializedPacket whose |packet| member is owned by the caller, and 102 // Returns a SerializedPacket whose |packet| member is owned by the caller, and
103 // is populated with the fields in |header| and |frames|, or is NULL if the 103 // is populated with the fields in |header| and |frames|, or is NULL if the
104 // packet could not be created. 104 // packet could not be created.
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 MOCK_METHOD1(OnCongestionWindowChange, void(QuicByteCount)); 539 MOCK_METHOD1(OnCongestionWindowChange, void(QuicByteCount));
540 540
541 private: 541 private:
542 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); 542 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor);
543 }; 543 };
544 544
545 } // namespace test 545 } // namespace test
546 } // namespace net 546 } // namespace net
547 547
548 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 548 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« net/quic/quic_connection.h ('K') | « net/quic/quic_received_packet_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698