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

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

Issue 1908103002: Landing Recent QUIC changes until 4/15/2016 17:20 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 PacketDroppingTestWriter(); 39 PacketDroppingTestWriter();
40 40
41 ~PacketDroppingTestWriter() override; 41 ~PacketDroppingTestWriter() override;
42 42
43 // Must be called before blocking, reordering or delaying (loss is OK). May be 43 // Must be called before blocking, reordering or delaying (loss is OK). May be
44 // called after connecting if the helper is not available before. 44 // called after connecting if the helper is not available before.
45 // |on_can_write| will be triggered when fake-unblocking; ownership will be 45 // |on_can_write| will be triggered when fake-unblocking; ownership will be
46 // assumed. 46 // assumed.
47 void Initialize(QuicConnectionHelperInterface* helper, 47 void Initialize(QuicConnectionHelperInterface* helper,
48 QuicAlarmFactory* alarm_factory,
48 Delegate* on_can_write); 49 Delegate* on_can_write);
49 50
50 // QuicPacketWriter methods: 51 // QuicPacketWriter methods:
51 WriteResult WritePacket(const char* buffer, 52 WriteResult WritePacket(const char* buffer,
52 size_t buf_len, 53 size_t buf_len,
53 const IPAddress& self_address, 54 const IPAddress& self_address,
54 const IPEndPoint& peer_address, 55 const IPEndPoint& peer_address,
55 PerPacketOptions* options) override; 56 PerPacketOptions* options) override;
56 57
57 bool IsWriteBlocked() const override; 58 bool IsWriteBlocked() const override;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 QuicBandwidth fake_bandwidth_; 172 QuicBandwidth fake_bandwidth_;
172 QuicByteCount buffer_size_; 173 QuicByteCount buffer_size_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter); 175 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter);
175 }; 176 };
176 177
177 } // namespace test 178 } // namespace test
178 } // namespace net 179 } // namespace net
179 180
180 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ 181 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698