| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 MockPacketWriter(); | 383 MockPacketWriter(); |
| 384 virtual ~MockPacketWriter(); | 384 virtual ~MockPacketWriter(); |
| 385 | 385 |
| 386 MOCK_METHOD5(WritePacket, | 386 MOCK_METHOD5(WritePacket, |
| 387 WriteResult(const char* buffer, | 387 WriteResult(const char* buffer, |
| 388 size_t buf_len, | 388 size_t buf_len, |
| 389 const IPAddressNumber& self_address, | 389 const IPAddressNumber& self_address, |
| 390 const IPEndPoint& peer_address, | 390 const IPEndPoint& peer_address, |
| 391 QuicBlockedWriterInterface* blocked_writer)); | 391 QuicBlockedWriterInterface* blocked_writer)); |
| 392 MOCK_CONST_METHOD0(IsWriteBlockedDataBuffered, bool()); | 392 MOCK_CONST_METHOD0(IsWriteBlockedDataBuffered, bool()); |
| 393 MOCK_CONST_METHOD0(IsWriteBlocked, bool()); |
| 394 MOCK_METHOD0(SetWritable, void()); |
| 393 }; | 395 }; |
| 394 | 396 |
| 395 class MockSendAlgorithm : public SendAlgorithmInterface { | 397 class MockSendAlgorithm : public SendAlgorithmInterface { |
| 396 public: | 398 public: |
| 397 MockSendAlgorithm(); | 399 MockSendAlgorithm(); |
| 398 virtual ~MockSendAlgorithm(); | 400 virtual ~MockSendAlgorithm(); |
| 399 | 401 |
| 400 MOCK_METHOD2(SetFromConfig, void(const QuicConfig& config, bool is_server)); | 402 MOCK_METHOD2(SetFromConfig, void(const QuicConfig& config, bool is_server)); |
| 401 MOCK_METHOD1(SetMaxPacketSize, void(QuicByteCount max_packet_size)); | 403 MOCK_METHOD1(SetMaxPacketSize, void(QuicByteCount max_packet_size)); |
| 402 MOCK_METHOD3(OnIncomingQuicCongestionFeedbackFrame, | 404 MOCK_METHOD3(OnIncomingQuicCongestionFeedbackFrame, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 MockAckNotifierDelegate(); | 465 MockAckNotifierDelegate(); |
| 464 virtual ~MockAckNotifierDelegate(); | 466 virtual ~MockAckNotifierDelegate(); |
| 465 | 467 |
| 466 MOCK_METHOD0(OnAckNotification, void()); | 468 MOCK_METHOD0(OnAckNotification, void()); |
| 467 }; | 469 }; |
| 468 | 470 |
| 469 } // namespace test | 471 } // namespace test |
| 470 } // namespace net | 472 } // namespace net |
| 471 | 473 |
| 472 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 474 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |