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

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

Issue 1814843002: Remove the unused has_retransmittable_data argument from QuicSendAlgorithm::TimeUntilSend. No func… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116887287
Patch Set: Created 4 years, 9 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_session_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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 const CongestionVector& lost_packets)); 595 const CongestionVector& lost_packets));
596 MOCK_METHOD5(OnPacketSent, 596 MOCK_METHOD5(OnPacketSent,
597 bool(QuicTime, 597 bool(QuicTime,
598 QuicByteCount, 598 QuicByteCount,
599 QuicPacketNumber, 599 QuicPacketNumber,
600 QuicByteCount, 600 QuicByteCount,
601 HasRetransmittableData)); 601 HasRetransmittableData));
602 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); 602 MOCK_METHOD1(OnRetransmissionTimeout, void(bool));
603 MOCK_METHOD0(OnConnectionMigration, void()); 603 MOCK_METHOD0(OnConnectionMigration, void());
604 MOCK_METHOD0(RevertRetransmissionTimeout, void()); 604 MOCK_METHOD0(RevertRetransmissionTimeout, void());
605 MOCK_CONST_METHOD3(TimeUntilSend, 605 MOCK_CONST_METHOD2(TimeUntilSend,
606 QuicTime::Delta(QuicTime now, 606 QuicTime::Delta(QuicTime now,
607 QuicByteCount bytes_in_flight, 607 QuicByteCount bytes_in_flight));
608 HasRetransmittableData));
609 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void)); 608 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void));
610 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 609 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
611 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); 610 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool());
612 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber)); 611 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber));
613 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); 612 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
614 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); 613 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount());
615 MOCK_CONST_METHOD0(InSlowStart, bool()); 614 MOCK_CONST_METHOD0(InSlowStart, bool());
616 MOCK_CONST_METHOD0(InRecovery, bool()); 615 MOCK_CONST_METHOD0(InRecovery, bool());
617 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount()); 616 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount());
618 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType()); 617 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType());
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 TestQuicSpdyServerSession** server_session); 805 TestQuicSpdyServerSession** server_session);
807 806
808 // Helper to generate client side stream ids, generalizes 807 // Helper to generate client side stream ids, generalizes
809 // kClientDataStreamId1 etc. above. 808 // kClientDataStreamId1 etc. above.
810 QuicStreamId QuicClientDataStreamId(int i); 809 QuicStreamId QuicClientDataStreamId(int i);
811 810
812 } // namespace test 811 } // namespace test
813 } // namespace net 812 } // namespace net
814 813
815 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 814 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698