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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 class MockConnectionVisitor : public QuicConnectionVisitorInterface { | 220 class MockConnectionVisitor : public QuicConnectionVisitorInterface { |
221 public: | 221 public: |
222 MockConnectionVisitor(); | 222 MockConnectionVisitor(); |
223 virtual ~MockConnectionVisitor(); | 223 virtual ~MockConnectionVisitor(); |
224 | 224 |
225 MOCK_METHOD1(OnStreamFrames, bool(const std::vector<QuicStreamFrame>& frame)); | 225 MOCK_METHOD1(OnStreamFrames, bool(const std::vector<QuicStreamFrame>& frame)); |
226 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); | 226 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); |
227 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); | 227 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); |
228 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); | 228 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); |
| 229 MOCK_METHOD0(OnWriteBlocked, void()); |
229 MOCK_METHOD0(OnCanWrite, bool()); | 230 MOCK_METHOD0(OnCanWrite, bool()); |
230 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); | 231 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); |
231 MOCK_METHOD1(OnSuccessfulVersionNegotiation, | 232 MOCK_METHOD1(OnSuccessfulVersionNegotiation, |
232 void(const QuicVersion& version)); | 233 void(const QuicVersion& version)); |
233 MOCK_METHOD0(OnConfigNegotiated, void()); | 234 MOCK_METHOD0(OnConfigNegotiated, void()); |
234 | 235 |
235 private: | 236 private: |
236 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor); | 237 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor); |
237 }; | 238 }; |
238 | 239 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 | 467 |
467 protected: | 468 protected: |
468 // Object is ref counted. | 469 // Object is ref counted. |
469 virtual ~MockAckNotifierDelegate(); | 470 virtual ~MockAckNotifierDelegate(); |
470 }; | 471 }; |
471 | 472 |
472 } // namespace test | 473 } // namespace test |
473 } // namespace net | 474 } // namespace net |
474 | 475 |
475 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 476 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |