| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 MOCK_METHOD1(OnStreamFrames, void(const std::vector<QuicStreamFrame>& frame)); | 187 MOCK_METHOD1(OnStreamFrames, void(const std::vector<QuicStreamFrame>& frame)); |
| 188 MOCK_METHOD1(OnWindowUpdateFrames, | 188 MOCK_METHOD1(OnWindowUpdateFrames, |
| 189 void(const std::vector<QuicWindowUpdateFrame>& frame)); | 189 void(const std::vector<QuicWindowUpdateFrame>& frame)); |
| 190 MOCK_METHOD1(OnBlockedFrames, | 190 MOCK_METHOD1(OnBlockedFrames, |
| 191 void(const std::vector<QuicBlockedFrame>& frame)); | 191 void(const std::vector<QuicBlockedFrame>& frame)); |
| 192 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); | 192 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); |
| 193 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); | 193 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); |
| 194 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); | 194 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); |
| 195 MOCK_METHOD0(OnWriteBlocked, void()); | 195 MOCK_METHOD0(OnWriteBlocked, void()); |
| 196 MOCK_METHOD0(OnCanWrite, void()); | 196 MOCK_METHOD0(OnCanWrite, void()); |
| 197 MOCK_CONST_METHOD0(HasPendingWrites, bool()); | 197 MOCK_CONST_METHOD0(WillingAndAbleToWrite, bool()); |
| 198 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); | 198 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); |
| 199 MOCK_CONST_METHOD0(HasOpenDataStreams, bool()); | 199 MOCK_CONST_METHOD0(HasOpenDataStreams, bool()); |
| 200 MOCK_METHOD1(OnSuccessfulVersionNegotiation, | 200 MOCK_METHOD1(OnSuccessfulVersionNegotiation, |
| 201 void(const QuicVersion& version)); | 201 void(const QuicVersion& version)); |
| 202 MOCK_METHOD0(OnConfigNegotiated, void()); | 202 MOCK_METHOD0(OnConfigNegotiated, void()); |
| 203 | 203 |
| 204 private: | 204 private: |
| 205 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor); | 205 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor); |
| 206 }; | 206 }; |
| 207 | 207 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 virtual ~MockAckNotifierDelegate(); | 478 virtual ~MockAckNotifierDelegate(); |
| 479 | 479 |
| 480 private: | 480 private: |
| 481 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); | 481 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); |
| 482 }; | 482 }; |
| 483 | 483 |
| 484 } // namespace test | 484 } // namespace test |
| 485 } // namespace net | 485 } // namespace net |
| 486 | 486 |
| 487 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 487 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |