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_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 virtual ~MockQuicServerSessionVisitor(); | 139 virtual ~MockQuicServerSessionVisitor(); |
140 MOCK_METHOD2(OnConnectionClosed, void(QuicConnectionId connection_id, | 140 MOCK_METHOD2(OnConnectionClosed, void(QuicConnectionId connection_id, |
141 QuicErrorCode error)); | 141 QuicErrorCode error)); |
142 MOCK_METHOD1(OnWriteBlocked, void(QuicBlockedWriterInterface* writer)); | 142 MOCK_METHOD1(OnWriteBlocked, void(QuicBlockedWriterInterface* writer)); |
143 }; | 143 }; |
144 | 144 |
145 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { | 145 class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { |
146 public: | 146 public: |
147 MockAckNotifierDelegate(); | 147 MockAckNotifierDelegate(); |
148 | 148 |
149 MOCK_METHOD0(OnAckNotification, void()); | 149 MOCK_METHOD4(OnAckNotification, void(int num_original_packets, |
| 150 int num_original_bytes, |
| 151 int num_retransmitted_packets, |
| 152 int num_retransmitted_bytes)); |
150 | 153 |
151 protected: | 154 protected: |
152 // Object is ref counted. | 155 // Object is ref counted. |
153 virtual ~MockAckNotifierDelegate(); | 156 virtual ~MockAckNotifierDelegate(); |
154 }; | 157 }; |
155 | 158 |
156 } // namespace test | 159 } // namespace test |
157 } // namespace tools | 160 } // namespace tools |
158 } // namespace net | 161 } // namespace net |
159 | 162 |
160 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 163 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |