| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 | 513 |
| 514 MOCK_CONST_METHOD1( | 514 MOCK_CONST_METHOD1( |
| 515 EntropyHash, | 515 EntropyHash, |
| 516 QuicPacketEntropyHash(QuicPacketSequenceNumber sequence_number)); | 516 QuicPacketEntropyHash(QuicPacketSequenceNumber sequence_number)); |
| 517 }; | 517 }; |
| 518 | 518 |
| 519 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { | 519 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { |
| 520 public: | 520 public: |
| 521 MockAckNotifierDelegate(); | 521 MockAckNotifierDelegate(); |
| 522 | 522 |
| 523 MOCK_METHOD4(OnAckNotification, void(int num_original_packets, | 523 MOCK_METHOD5(OnAckNotification, void(int num_original_packets, |
| 524 int num_original_bytes, | 524 int num_original_bytes, |
| 525 int num_retransmitted_packets, | 525 int num_retransmitted_packets, |
| 526 int num_retransmitted_bytes)); | 526 int num_retransmitted_bytes, |
| 527 QuicTime::Delta delta_largest_observed)); |
| 527 | 528 |
| 528 protected: | 529 protected: |
| 529 // Object is ref counted. | 530 // Object is ref counted. |
| 530 virtual ~MockAckNotifierDelegate(); | 531 virtual ~MockAckNotifierDelegate(); |
| 531 }; | 532 }; |
| 532 | 533 |
| 533 } // namespace test | 534 } // namespace test |
| 534 } // namespace net | 535 } // namespace net |
| 535 | 536 |
| 536 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 537 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |