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

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

Issue 2064543002: Add a new rate based sending connection option which uses the pacing rate to keep the bytes_in_flig… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@124273380
Patch Set: Rebase. Created 4 years, 6 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
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | no next file » | 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>
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 QuicByteCount, 719 QuicByteCount,
720 QuicPacketNumber, 720 QuicPacketNumber,
721 QuicByteCount, 721 QuicByteCount,
722 HasRetransmittableData)); 722 HasRetransmittableData));
723 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); 723 MOCK_METHOD1(OnRetransmissionTimeout, void(bool));
724 MOCK_METHOD0(OnConnectionMigration, void()); 724 MOCK_METHOD0(OnConnectionMigration, void());
725 MOCK_METHOD0(RevertRetransmissionTimeout, void()); 725 MOCK_METHOD0(RevertRetransmissionTimeout, void());
726 MOCK_CONST_METHOD2(TimeUntilSend, 726 MOCK_CONST_METHOD2(TimeUntilSend,
727 QuicTime::Delta(QuicTime now, 727 QuicTime::Delta(QuicTime now,
728 QuicByteCount bytes_in_flight)); 728 QuicByteCount bytes_in_flight));
729 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void)); 729 MOCK_CONST_METHOD1(PacingRate, QuicBandwidth(QuicByteCount));
730 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 730 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
731 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); 731 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool());
732 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber)); 732 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber));
733 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); 733 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
734 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); 734 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount());
735 MOCK_CONST_METHOD0(InSlowStart, bool()); 735 MOCK_CONST_METHOD0(InSlowStart, bool());
736 MOCK_CONST_METHOD0(InRecovery, bool()); 736 MOCK_CONST_METHOD0(InRecovery, bool());
737 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount()); 737 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount());
738 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType()); 738 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType());
739 MOCK_METHOD2(ResumeConnectionState, 739 MOCK_METHOD2(ResumeConnectionState,
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 TestQuicSpdyServerSession** server_session); 934 TestQuicSpdyServerSession** server_session);
935 935
936 // Helper to generate client side stream ids, generalizes 936 // Helper to generate client side stream ids, generalizes
937 // kClientDataStreamId1 etc. above. 937 // kClientDataStreamId1 etc. above.
938 QuicStreamId QuicClientDataStreamId(int i); 938 QuicStreamId QuicClientDataStreamId(int i);
939 939
940 } // namespace test 940 } // namespace test
941 } // namespace net 941 } // namespace net
942 942
943 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 943 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698