| 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 QuicByteCount bytes_in_flight, | 538 QuicByteCount bytes_in_flight, |
| 539 const CongestionVector& acked_packets, | 539 const CongestionVector& acked_packets, |
| 540 const CongestionVector& lost_packets)); | 540 const CongestionVector& lost_packets)); |
| 541 MOCK_METHOD5(OnPacketSent, | 541 MOCK_METHOD5(OnPacketSent, |
| 542 bool(QuicTime, | 542 bool(QuicTime, |
| 543 QuicByteCount, | 543 QuicByteCount, |
| 544 QuicPacketNumber, | 544 QuicPacketNumber, |
| 545 QuicByteCount, | 545 QuicByteCount, |
| 546 HasRetransmittableData)); | 546 HasRetransmittableData)); |
| 547 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); | 547 MOCK_METHOD1(OnRetransmissionTimeout, void(bool)); |
| 548 MOCK_METHOD0(OnConnectionMigration, void()); |
| 548 MOCK_METHOD0(RevertRetransmissionTimeout, void()); | 549 MOCK_METHOD0(RevertRetransmissionTimeout, void()); |
| 549 MOCK_CONST_METHOD3(TimeUntilSend, | 550 MOCK_CONST_METHOD3(TimeUntilSend, |
| 550 QuicTime::Delta(QuicTime now, | 551 QuicTime::Delta(QuicTime now, |
| 551 QuicByteCount bytes_in_flight, | 552 QuicByteCount bytes_in_flight, |
| 552 HasRetransmittableData)); | 553 HasRetransmittableData)); |
| 553 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void)); | 554 MOCK_CONST_METHOD0(PacingRate, QuicBandwidth(void)); |
| 554 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); | 555 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); |
| 555 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); | 556 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); |
| 556 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber)); | 557 MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber)); |
| 557 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); | 558 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 TestQuicSpdyServerSession** server_session); | 770 TestQuicSpdyServerSession** server_session); |
| 770 | 771 |
| 771 // Helper to generate client side stream ids, generalizes | 772 // Helper to generate client side stream ids, generalizes |
| 772 // kClientDataStreamId1 etc. above. | 773 // kClientDataStreamId1 etc. above. |
| 773 QuicStreamId QuicClientDataStreamId(int i); | 774 QuicStreamId QuicClientDataStreamId(int i); |
| 774 | 775 |
| 775 } // namespace test | 776 } // namespace test |
| 776 } // namespace net | 777 } // namespace net |
| 777 | 778 |
| 778 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 779 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |