| 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 private: | 440 private: |
| 441 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); | 441 DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm); |
| 442 }; | 442 }; |
| 443 | 443 |
| 444 class MockLossAlgorithm : public LossDetectionInterface { | 444 class MockLossAlgorithm : public LossDetectionInterface { |
| 445 public: | 445 public: |
| 446 MockLossAlgorithm(); | 446 MockLossAlgorithm(); |
| 447 virtual ~MockLossAlgorithm(); | 447 virtual ~MockLossAlgorithm(); |
| 448 | 448 |
| 449 MOCK_METHOD4(DetectLostPackets, | 449 MOCK_METHOD5(DetectLostPackets, |
| 450 SequenceNumberSet(const QuicUnackedPacketMap& unacked_packets, | 450 SequenceNumberSet(const QuicUnackedPacketMap& unacked_packets, |
| 451 const QuicTime& time, | 451 const QuicTime& time, |
| 452 QuicPacketSequenceNumber largest_observed, | 452 QuicPacketSequenceNumber largest_observed, |
| 453 QuicTime::Delta srtt)); | 453 QuicTime::Delta srtt, |
| 454 QuicTime::Delta latest_rtt)); |
| 454 MOCK_CONST_METHOD0(GetLossTimeout, QuicTime()); | 455 MOCK_CONST_METHOD0(GetLossTimeout, QuicTime()); |
| 455 }; | 456 }; |
| 456 | 457 |
| 457 class TestEntropyCalculator : | 458 class TestEntropyCalculator : |
| 458 public QuicReceivedEntropyHashCalculatorInterface { | 459 public QuicReceivedEntropyHashCalculatorInterface { |
| 459 public: | 460 public: |
| 460 TestEntropyCalculator(); | 461 TestEntropyCalculator(); |
| 461 virtual ~TestEntropyCalculator(); | 462 virtual ~TestEntropyCalculator(); |
| 462 | 463 |
| 463 virtual QuicPacketEntropyHash EntropyHash( | 464 virtual QuicPacketEntropyHash EntropyHash( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 497 |
| 497 protected: | 498 protected: |
| 498 // Object is ref counted. | 499 // Object is ref counted. |
| 499 virtual ~MockAckNotifierDelegate(); | 500 virtual ~MockAckNotifierDelegate(); |
| 500 }; | 501 }; |
| 501 | 502 |
| 502 } // namespace test | 503 } // namespace test |
| 503 } // namespace net | 504 } // namespace net |
| 504 | 505 |
| 505 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 506 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |