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

Unified Diff: net/quic/test_tools/quic_test_utils.cc

Issue 1569823008: relnote: Merge all fields of QueuedPacket into SerializedPacket. No functional change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: track previous cl 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
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_utils.cc
diff --git a/net/quic/test_tools/quic_test_utils.cc b/net/quic/test_tools/quic_test_utils.cc
index 6bcb214d5b9c2099adbd5c8506d776a1590a1571..bd4b6f524e86f2113249722bf5cb3823d2343670 100644
--- a/net/quic/test_tools/quic_test_utils.cc
+++ b/net/quic/test_tools/quic_test_utils.cc
@@ -282,17 +282,16 @@ PacketSavingConnection::~PacketSavingConnection() {
STLDeleteElements(&encrypted_packets_);
}
-void PacketSavingConnection::SendOrQueuePacket(QueuedPacket packet) {
- if (!packet.serialized_packet.packet->owns_buffer()) {
- scoped_ptr<QuicEncryptedPacket> encrypted_deleter(
- packet.serialized_packet.packet);
- packet.serialized_packet.packet = packet.serialized_packet.packet->Clone();
+void PacketSavingConnection::SendOrQueuePacket(SerializedPacket* packet) {
+ if (!packet->packet->owns_buffer()) {
+ scoped_ptr<QuicEncryptedPacket> encrypted_deleter(packet->packet);
+ packet->packet = packet->packet->Clone();
}
- encrypted_packets_.push_back(packet.serialized_packet.packet);
+ encrypted_packets_.push_back(packet->packet);
// Transfer ownership of the packet to the SentPacketManager and the
// ack notifier to the AckNotifierManager.
- sent_packet_manager_.OnPacketSent(&packet.serialized_packet, 0,
- QuicTime::Zero(), 1000, NOT_RETRANSMISSION,
+ sent_packet_manager_.OnPacketSent(packet, 0, QuicTime::Zero(), 1000,
+ NOT_RETRANSMISSION,
HAS_RETRANSMITTABLE_DATA);
}
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698