| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 MockSendAlgorithm(); | 441 MockSendAlgorithm(); |
| 442 virtual ~MockSendAlgorithm(); | 442 virtual ~MockSendAlgorithm(); |
| 443 | 443 |
| 444 MOCK_METHOD2(SetFromConfig, void(const QuicConfig& config, bool is_server)); | 444 MOCK_METHOD2(SetFromConfig, void(const QuicConfig& config, bool is_server)); |
| 445 MOCK_METHOD1(SetMaxPacketSize, void(QuicByteCount max_packet_size)); | 445 MOCK_METHOD1(SetMaxPacketSize, void(QuicByteCount max_packet_size)); |
| 446 MOCK_METHOD2(OnIncomingQuicCongestionFeedbackFrame, | 446 MOCK_METHOD2(OnIncomingQuicCongestionFeedbackFrame, |
| 447 void(const QuicCongestionFeedbackFrame&, | 447 void(const QuicCongestionFeedbackFrame&, |
| 448 QuicTime feedback_receive_time)); | 448 QuicTime feedback_receive_time)); |
| 449 MOCK_METHOD4(OnCongestionEvent, void(bool rtt_updated, | 449 MOCK_METHOD4(OnCongestionEvent, void(bool rtt_updated, |
| 450 QuicByteCount bytes_in_flight, | 450 QuicByteCount bytes_in_flight, |
| 451 const CongestionMap& acked_packets, | 451 const CongestionVector& acked_packets, |
| 452 const CongestionMap& lost_packets)); | 452 const CongestionVector& lost_packets)); |
| 453 MOCK_METHOD5(OnPacketSent, | 453 MOCK_METHOD5(OnPacketSent, |
| 454 bool(QuicTime, QuicByteCount, QuicPacketSequenceNumber, | 454 bool(QuicTime, QuicByteCount, QuicPacketSequenceNumber, |
| 455 QuicByteCount, HasRetransmittableData)); | 455 QuicByteCount, HasRetransmittableData)); |
| 456 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); | 456 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); |
| 457 MOCK_METHOD0(RevertRetransmissionTimeout, void()); | 457 MOCK_METHOD0(RevertRetransmissionTimeout, void()); |
| 458 MOCK_CONST_METHOD3(TimeUntilSend, | 458 MOCK_CONST_METHOD3(TimeUntilSend, |
| 459 QuicTime::Delta(QuicTime now, | 459 QuicTime::Delta(QuicTime now, |
| 460 QuicByteCount bytes_in_flight, | 460 QuicByteCount bytes_in_flight, |
| 461 HasRetransmittableData)); | 461 HasRetransmittableData)); |
| 462 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); | 462 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 // clears the pointer to it to prevent use-after-free. | 583 // clears the pointer to it to prevent use-after-free. |
| 584 void Unregister(PerConnectionPacketWriter* writer); | 584 void Unregister(PerConnectionPacketWriter* writer); |
| 585 | 585 |
| 586 PerConnectionPacketWriter* current_writer_; | 586 PerConnectionPacketWriter* current_writer_; |
| 587 }; | 587 }; |
| 588 | 588 |
| 589 } // namespace test | 589 } // namespace test |
| 590 } // namespace net | 590 } // namespace net |
| 591 | 591 |
| 592 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 592 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |