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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 479 |
480 MOCK_CONST_METHOD1( | 480 MOCK_CONST_METHOD1( |
481 EntropyHash, | 481 EntropyHash, |
482 QuicPacketEntropyHash(QuicPacketSequenceNumber sequence_number)); | 482 QuicPacketEntropyHash(QuicPacketSequenceNumber sequence_number)); |
483 }; | 483 }; |
484 | 484 |
485 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { | 485 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { |
486 public: | 486 public: |
487 MockAckNotifierDelegate(); | 487 MockAckNotifierDelegate(); |
488 | 488 |
489 MOCK_METHOD0(OnAckNotification, void()); | 489 MOCK_METHOD4(OnAckNotification, void(int num_original_packets, |
| 490 int num_original_bytes, |
| 491 int num_retransmitted_packets, |
| 492 int num_retransmitted_bytes)); |
490 | 493 |
491 protected: | 494 protected: |
492 // Object is ref counted. | 495 // Object is ref counted. |
493 virtual ~MockAckNotifierDelegate(); | 496 virtual ~MockAckNotifierDelegate(); |
494 }; | 497 }; |
495 | 498 |
496 } // namespace test | 499 } // namespace test |
497 } // namespace net | 500 } // namespace net |
498 | 501 |
499 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 502 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |