OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef NET_QUIC_CHROMIUM_MOCK_QUIC_DATA_H_ |
| 6 #define NET_QUIC_CHROMIUM_MOCK_QUIC_DATA_H_ |
| 7 |
5 #include "net/quic/core/quic_packets.h" | 8 #include "net/quic/core/quic_packets.h" |
6 #include "net/socket/socket_test_util.h" | 9 #include "net/socket/socket_test_util.h" |
7 | 10 |
8 namespace net { | 11 namespace net { |
9 namespace test { | 12 namespace test { |
10 | 13 |
11 // Helper class to encapsulate MockReads and MockWrites for QUIC. | 14 // Helper class to encapsulate MockReads and MockWrites for QUIC. |
12 // Simplify ownership issues and the interaction with the MockSocketFactory. | 15 // Simplify ownership issues and the interaction with the MockSocketFactory. |
13 class MockQuicData { | 16 class MockQuicData { |
14 public: | 17 public: |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 std::vector<std::unique_ptr<QuicEncryptedPacket>> packets_; | 58 std::vector<std::unique_ptr<QuicEncryptedPacket>> packets_; |
56 std::unique_ptr<MockConnect> connect_; | 59 std::unique_ptr<MockConnect> connect_; |
57 std::vector<MockWrite> writes_; | 60 std::vector<MockWrite> writes_; |
58 std::vector<MockRead> reads_; | 61 std::vector<MockRead> reads_; |
59 size_t sequence_number_; | 62 size_t sequence_number_; |
60 std::unique_ptr<SequencedSocketData> socket_data_; | 63 std::unique_ptr<SequencedSocketData> socket_data_; |
61 }; | 64 }; |
62 | 65 |
63 } // namespace test | 66 } // namespace test |
64 } // namespace net | 67 } // namespace net |
| 68 |
| 69 #endif // NET_QUIC_CHROMIUM_MOCK_QUIC_DATA_H_ |
OLD | NEW |