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

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

Issue 2222093002: Add GetDebugState() in SendAlgorithmInterface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129015386
Patch Set: Created 4 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
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_interface.h ('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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 MOCK_METHOD0(RevertRetransmissionTimeout, void()); 743 MOCK_METHOD0(RevertRetransmissionTimeout, void());
744 MOCK_CONST_METHOD2(TimeUntilSend, 744 MOCK_CONST_METHOD2(TimeUntilSend,
745 QuicTime::Delta(QuicTime now, 745 QuicTime::Delta(QuicTime now,
746 QuicByteCount bytes_in_flight)); 746 QuicByteCount bytes_in_flight));
747 MOCK_CONST_METHOD1(PacingRate, QuicBandwidth(QuicByteCount)); 747 MOCK_CONST_METHOD1(PacingRate, QuicBandwidth(QuicByteCount));
748 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 748 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
749 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); 749 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool());
750 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber)); 750 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber));
751 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); 751 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
752 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); 752 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount());
753 MOCK_CONST_METHOD0(GetDebugState, std::string());
753 MOCK_CONST_METHOD0(InSlowStart, bool()); 754 MOCK_CONST_METHOD0(InSlowStart, bool());
754 MOCK_CONST_METHOD0(InRecovery, bool()); 755 MOCK_CONST_METHOD0(InRecovery, bool());
755 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount()); 756 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount());
756 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType()); 757 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType());
757 MOCK_METHOD2(ResumeConnectionState, 758 MOCK_METHOD2(ResumeConnectionState,
758 void(const CachedNetworkParameters&, bool)); 759 void(const CachedNetworkParameters&, bool));
759 760
760 private: 761 private:
761 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); 762 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm);
762 }; 763 };
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 MOCK_CONST_METHOD0(GetRetransmissionTime, const QuicTime(void)); 932 MOCK_CONST_METHOD0(GetRetransmissionTime, const QuicTime(void));
932 MOCK_CONST_METHOD0(GetRttStats, const RttStats*(void)); 933 MOCK_CONST_METHOD0(GetRttStats, const RttStats*(void));
933 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); 934 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void));
934 MOCK_CONST_METHOD0(SustainedBandwidthRecorder, 935 MOCK_CONST_METHOD0(SustainedBandwidthRecorder,
935 const QuicSustainedBandwidthRecorder*(void)); 936 const QuicSustainedBandwidthRecorder*(void));
936 MOCK_CONST_METHOD0(GetCongestionWindowInTcpMss, QuicPacketCount(void)); 937 MOCK_CONST_METHOD0(GetCongestionWindowInTcpMss, QuicPacketCount(void));
937 MOCK_CONST_METHOD1(EstimateMaxPacketsInFlight, 938 MOCK_CONST_METHOD1(EstimateMaxPacketsInFlight,
938 QuicPacketCount(QuicByteCount)); 939 QuicPacketCount(QuicByteCount));
939 MOCK_CONST_METHOD0(GetCongestionWindowInBytes, QuicByteCount(void)); 940 MOCK_CONST_METHOD0(GetCongestionWindowInBytes, QuicByteCount(void));
940 MOCK_CONST_METHOD0(GetSlowStartThresholdInTcpMss, QuicPacketCount(void)); 941 MOCK_CONST_METHOD0(GetSlowStartThresholdInTcpMss, QuicPacketCount(void));
942 MOCK_CONST_METHOD0(GetDebugState, std::string());
941 MOCK_METHOD1(CancelRetransmissionsForStream, void(QuicStreamId)); 943 MOCK_METHOD1(CancelRetransmissionsForStream, void(QuicStreamId));
942 MOCK_METHOD2(OnConnectionMigration, void(QuicPathId, PeerAddressChangeType)); 944 MOCK_METHOD2(OnConnectionMigration, void(QuicPathId, PeerAddressChangeType));
943 MOCK_CONST_METHOD0(IsHandshakeConfirmed, bool(void)); 945 MOCK_CONST_METHOD0(IsHandshakeConfirmed, bool(void));
944 MOCK_METHOD1(SetDebugDelegate, void(DebugDelegate*)); 946 MOCK_METHOD1(SetDebugDelegate, void(DebugDelegate*));
945 MOCK_CONST_METHOD1(GetLargestObserved, QuicPacketNumber(QuicPathId)); 947 MOCK_CONST_METHOD1(GetLargestObserved, QuicPacketNumber(QuicPathId));
946 MOCK_CONST_METHOD1(GetLargestSentPacket, QuicPacketNumber(QuicPathId)); 948 MOCK_CONST_METHOD1(GetLargestSentPacket, QuicPacketNumber(QuicPathId));
947 MOCK_CONST_METHOD1(GetLeastPacketAwaitedByPeer, QuicPacketNumber(QuicPathId)); 949 MOCK_CONST_METHOD1(GetLeastPacketAwaitedByPeer, QuicPacketNumber(QuicPathId));
948 MOCK_METHOD1(SetNetworkChangeVisitor, void(NetworkChangeVisitor*)); 950 MOCK_METHOD1(SetNetworkChangeVisitor, void(NetworkChangeVisitor*));
949 MOCK_CONST_METHOD0(InSlowStart, bool(void)); 951 MOCK_CONST_METHOD0(InSlowStart, bool(void));
950 MOCK_CONST_METHOD0(GetConsecutiveRtoCount, size_t(void)); 952 MOCK_CONST_METHOD0(GetConsecutiveRtoCount, size_t(void));
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 TestQuicSpdyServerSession** server_session); 1018 TestQuicSpdyServerSession** server_session);
1017 1019
1018 // Helper to generate client side stream ids, generalizes 1020 // Helper to generate client side stream ids, generalizes
1019 // kClientDataStreamId1 etc. above. 1021 // kClientDataStreamId1 etc. above.
1020 QuicStreamId QuicClientDataStreamId(int i); 1022 QuicStreamId QuicClientDataStreamId(int i);
1021 1023
1022 } // namespace test 1024 } // namespace test
1023 } // namespace net 1025 } // namespace net
1024 1026
1025 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 1027 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698