| OLD | NEW |
| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 void(const QuicCongestionFeedbackFrame&, | 445 void(const QuicCongestionFeedbackFrame&, |
| 446 QuicTime feedback_receive_time)); | 446 QuicTime feedback_receive_time)); |
| 447 MOCK_METHOD4(OnCongestionEvent, void(bool rtt_updated, | 447 MOCK_METHOD4(OnCongestionEvent, void(bool rtt_updated, |
| 448 QuicByteCount bytes_in_flight, | 448 QuicByteCount bytes_in_flight, |
| 449 const CongestionMap& acked_packets, | 449 const CongestionMap& acked_packets, |
| 450 const CongestionMap& lost_packets)); | 450 const CongestionMap& lost_packets)); |
| 451 MOCK_METHOD5(OnPacketSent, | 451 MOCK_METHOD5(OnPacketSent, |
| 452 bool(QuicTime, QuicByteCount, QuicPacketSequenceNumber, | 452 bool(QuicTime, QuicByteCount, QuicPacketSequenceNumber, |
| 453 QuicByteCount, HasRetransmittableData)); | 453 QuicByteCount, HasRetransmittableData)); |
| 454 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); | 454 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); |
| 455 MOCK_METHOD0(RevertRetransmissionTimeout, void()); |
| 455 MOCK_CONST_METHOD3(TimeUntilSend, | 456 MOCK_CONST_METHOD3(TimeUntilSend, |
| 456 QuicTime::Delta(QuicTime now, | 457 QuicTime::Delta(QuicTime now, |
| 457 QuicByteCount bytes_in_flight, | 458 QuicByteCount bytes_in_flight, |
| 458 HasRetransmittableData)); | 459 HasRetransmittableData)); |
| 459 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); | 460 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); |
| 460 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber)); | 461 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber)); |
| 461 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); | 462 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); |
| 462 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); | 463 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); |
| 463 | 464 |
| 464 private: | 465 private: |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 virtual ~MockAckNotifierDelegate(); | 524 virtual ~MockAckNotifierDelegate(); |
| 524 | 525 |
| 525 private: | 526 private: |
| 526 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); | 527 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); |
| 527 }; | 528 }; |
| 528 | 529 |
| 529 } // namespace test | 530 } // namespace test |
| 530 } // namespace net | 531 } // namespace net |
| 531 | 532 |
| 532 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 533 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |