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

Unified Diff: net/tools/quic/test_tools/packet_dropping_test_writer.h

Issue 1662433002: Per-packet options now passed through to QuicPacketWriter, instead of (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113054959
Patch Set: Fix comments for Patch Set 1 Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: net/tools/quic/test_tools/packet_dropping_test_writer.h
diff --git a/net/tools/quic/test_tools/packet_dropping_test_writer.h b/net/tools/quic/test_tools/packet_dropping_test_writer.h
index 20554306263aabf63213e5f56baaa51d8ab70db7..ce38c40a0b56003f6939580e19fa62e00ee11418 100644
--- a/net/tools/quic/test_tools/packet_dropping_test_writer.h
+++ b/net/tools/quic/test_tools/packet_dropping_test_writer.h
@@ -50,7 +50,8 @@ class PacketDroppingTestWriter : public QuicPacketWriterWrapper {
WriteResult WritePacket(const char* buffer,
size_t buf_len,
const IPAddressNumber& self_address,
- const IPEndPoint& peer_address) override;
+ const IPEndPoint& peer_address,
+ PerPacketOptions* options) override;
bool IsWriteBlocked() const override;
@@ -127,13 +128,22 @@ class PacketDroppingTestWriter : public QuicPacketWriterWrapper {
size_t buf_len,
const IPAddressNumber& self_address,
const IPEndPoint& peer_address,
+ std::unique_ptr<PerPacketOptions> options,
QuicTime send_time);
+ // TODO(rtenneti): on windows RValue reference gives errors.
+ DelayedWrite(DelayedWrite&& other);
+ // TODO(rtenneti): on windows RValue reference gives errors.
+ // DelayedWrite& operator=(DelayedWrite&& other);
~DelayedWrite();
std::string buffer;
const IPAddressNumber self_address;
const IPEndPoint peer_address;
+ std::unique_ptr<PerPacketOptions> options;
QuicTime send_time;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DelayedWrite);
};
typedef std::list<DelayedWrite> DelayedPacketList;
« no previous file with comments | « net/tools/quic/test_tools/limited_mtu_test_writer.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