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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 MOCK_CONST_METHOD3(TimeUntilSend, | 455 MOCK_CONST_METHOD3(TimeUntilSend, |
456 QuicTime::Delta(QuicTime now, | 456 QuicTime::Delta(QuicTime now, |
457 QuicByteCount bytes_in_flight, | 457 QuicByteCount bytes_in_flight, |
458 HasRetransmittableData)); | 458 HasRetransmittableData)); |
459 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); | 459 MOCK_CONST_METHOD0(BandwidthEstimate, QuicBandwidth(void)); |
460 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); | 460 MOCK_CONST_METHOD0(HasReliableBandwidthEstimate, bool()); |
461 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber)); | 461 MOCK_METHOD1(OnRttUpdated, void(QuicPacketSequenceNumber)); |
462 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); | 462 MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void)); |
463 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); | 463 MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount()); |
464 MOCK_CONST_METHOD0(InSlowStart, bool()); | 464 MOCK_CONST_METHOD0(InSlowStart, bool()); |
| 465 MOCK_CONST_METHOD0(InRecovery, bool()); |
465 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount()); | 466 MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount()); |
466 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType()); | 467 MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType()); |
467 | 468 |
468 private: | 469 private: |
469 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); | 470 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); |
470 }; | 471 }; |
471 | 472 |
472 class MockLossAlgorithm : public LossDetectionInterface { | 473 class MockLossAlgorithm : public LossDetectionInterface { |
473 public: | 474 public: |
474 MockLossAlgorithm(); | 475 MockLossAlgorithm(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 MOCK_METHOD1(OnCongestionWindowChange, void(QuicByteCount)); | 540 MOCK_METHOD1(OnCongestionWindowChange, void(QuicByteCount)); |
540 | 541 |
541 private: | 542 private: |
542 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); | 543 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); |
543 }; | 544 }; |
544 | 545 |
545 } // namespace test | 546 } // namespace test |
546 } // namespace net | 547 } // namespace net |
547 | 548 |
548 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 549 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |