| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 private: | 270 private: |
| 271 DISALLOW_COPY_AND_ASSIGN(NoOpFramerVisitor); | 271 DISALLOW_COPY_AND_ASSIGN(NoOpFramerVisitor); |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 class MockConnectionVisitor : public QuicConnectionVisitorInterface { | 274 class MockConnectionVisitor : public QuicConnectionVisitorInterface { |
| 275 public: | 275 public: |
| 276 MockConnectionVisitor(); | 276 MockConnectionVisitor(); |
| 277 ~MockConnectionVisitor() override; | 277 ~MockConnectionVisitor() override; |
| 278 | 278 |
| 279 MOCK_METHOD1(OnStreamFrames, void(const std::vector<QuicStreamFrame>& frame)); | 279 MOCK_METHOD1(OnStreamFrame, void(const QuicStreamFrame& frame)); |
| 280 MOCK_METHOD1(OnWindowUpdateFrames, | 280 MOCK_METHOD1(OnWindowUpdateFrame, void(const QuicWindowUpdateFrame& frame)); |
| 281 void(const std::vector<QuicWindowUpdateFrame>& frame)); | 281 MOCK_METHOD1(OnBlockedFrame, void(const QuicBlockedFrame& frame)); |
| 282 MOCK_METHOD1(OnBlockedFrames, | |
| 283 void(const std::vector<QuicBlockedFrame>& frame)); | |
| 284 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); | 282 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); |
| 285 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); | 283 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); |
| 286 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); | 284 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); |
| 287 MOCK_METHOD0(OnWriteBlocked, void()); | 285 MOCK_METHOD0(OnWriteBlocked, void()); |
| 288 MOCK_METHOD0(OnCanWrite, void()); | 286 MOCK_METHOD0(OnCanWrite, void()); |
| 289 MOCK_METHOD1(OnCongestionWindowChange, void(QuicTime now)); | 287 MOCK_METHOD1(OnCongestionWindowChange, void(QuicTime now)); |
| 290 MOCK_CONST_METHOD0(WillingAndAbleToWrite, bool()); | 288 MOCK_CONST_METHOD0(WillingAndAbleToWrite, bool()); |
| 291 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); | 289 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); |
| 292 MOCK_CONST_METHOD0(HasOpenDynamicStreams, bool()); | 290 MOCK_CONST_METHOD0(HasOpenDynamicStreams, bool()); |
| 293 MOCK_METHOD1(OnSuccessfulVersionNegotiation, | 291 MOCK_METHOD1(OnSuccessfulVersionNegotiation, |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 void CreateServerSessionForTest(QuicServerId server_id, | 755 void CreateServerSessionForTest(QuicServerId server_id, |
| 758 QuicTime::Delta connection_start_time, | 756 QuicTime::Delta connection_start_time, |
| 759 QuicCryptoServerConfig* crypto_server_config, | 757 QuicCryptoServerConfig* crypto_server_config, |
| 760 PacketSavingConnection** server_connection, | 758 PacketSavingConnection** server_connection, |
| 761 TestQuicSpdyServerSession** server_session); | 759 TestQuicSpdyServerSession** server_session); |
| 762 | 760 |
| 763 } // namespace test | 761 } // namespace test |
| 764 } // namespace net | 762 } // namespace net |
| 765 | 763 |
| 766 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 764 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |