| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); | 844 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); |
| 845 }; | 845 }; |
| 846 | 846 |
| 847 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { | 847 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { |
| 848 public: | 848 public: |
| 849 MockQuicConnectionDebugVisitor(); | 849 MockQuicConnectionDebugVisitor(); |
| 850 ~MockQuicConnectionDebugVisitor() override; | 850 ~MockQuicConnectionDebugVisitor() override; |
| 851 | 851 |
| 852 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); | 852 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); |
| 853 | 853 |
| 854 MOCK_METHOD5(OnPacketSent, | 854 MOCK_METHOD4(OnPacketSent, |
| 855 void(const SerializedPacket&, | 855 void(const SerializedPacket&, |
| 856 QuicPathId, | |
| 857 QuicPacketNumber, | 856 QuicPacketNumber, |
| 858 TransmissionType, | 857 TransmissionType, |
| 859 QuicTime)); | 858 QuicTime)); |
| 860 | 859 |
| 861 MOCK_METHOD0(OnPingSent, void()); | 860 MOCK_METHOD0(OnPingSent, void()); |
| 862 | 861 |
| 863 MOCK_METHOD3(OnPacketReceived, | 862 MOCK_METHOD3(OnPacketReceived, |
| 864 void(const QuicSocketAddress&, | 863 void(const QuicSocketAddress&, |
| 865 const QuicSocketAddress&, | 864 const QuicSocketAddress&, |
| 866 const QuicEncryptedPacket&)); | 865 const QuicEncryptedPacket&)); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 iov->iov_base = const_cast<char*>(str.data()); | 1006 iov->iov_base = const_cast<char*>(str.data()); |
| 1008 iov->iov_len = static_cast<size_t>(str.size()); | 1007 iov->iov_len = static_cast<size_t>(str.size()); |
| 1009 QuicIOVector quic_iov(iov, 1, str.size()); | 1008 QuicIOVector quic_iov(iov, 1, str.size()); |
| 1010 return quic_iov; | 1009 return quic_iov; |
| 1011 } | 1010 } |
| 1012 | 1011 |
| 1013 } // namespace test | 1012 } // namespace test |
| 1014 } // namespace net | 1013 } // namespace net |
| 1015 | 1014 |
| 1016 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 1015 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |