Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Side by Side Diff: net/tools/quic/test_tools/packet_dropping_test_writer.h

Issue 999353005: Land Recent QUIC Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wrap Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 }; 36 };
37 37
38 PacketDroppingTestWriter(); 38 PacketDroppingTestWriter();
39 39
40 ~PacketDroppingTestWriter() override; 40 ~PacketDroppingTestWriter() override;
41 41
42 // Must be called before blocking, reordering or delaying (loss is OK). May be 42 // Must be called before blocking, reordering or delaying (loss is OK). May be
43 // called after connecting if the helper is not available before. 43 // called after connecting if the helper is not available before.
44 // |on_can_write| will be triggered when fake-unblocking; ownership will be 44 // |on_can_write| will be triggered when fake-unblocking; ownership will be
45 // assumed. 45 // assumed.
46 void Initialize(QuicEpollConnectionHelper* helper, Delegate* on_can_write); 46 void Initialize(QuicConnectionHelperInterface* helper,
47 Delegate* on_can_write);
47 48
48 // QuicPacketWriter methods: 49 // QuicPacketWriter methods:
49 WriteResult WritePacket(const char* buffer, 50 WriteResult WritePacket(const char* buffer,
50 size_t buf_len, 51 size_t buf_len,
51 const IPAddressNumber& self_address, 52 const IPAddressNumber& self_address,
52 const IPEndPoint& peer_address) override; 53 const IPEndPoint& peer_address) override;
53 54
54 bool IsWriteBlocked() const override; 55 bool IsWriteBlocked() const override;
55 56
56 void SetWritable() override; 57 void SetWritable() override;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 QuicByteCount buffer_size_; 151 QuicByteCount buffer_size_;
151 152
152 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter); 153 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter);
153 }; 154 };
154 155
155 } // namespace test 156 } // namespace test
156 } // namespace tools 157 } // namespace tools
157 } // namespace net 158 } // namespace net
158 159
159 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ 160 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/mock_quic_dispatcher.cc ('k') | net/tools/quic/test_tools/packet_dropping_test_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698