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

Unified Diff: net/quic/quic_connection_test.cc

Issue 1667003002: Replace QuicEncryptedPacket's fields with equivalents in SerializedPacket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113395732
Patch Set: 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/quic_connection.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection_test.cc
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc
index 1c34eef5302969a89dac87bdc05b3aebcacf7a10..078304b952439e8321104d9dff19d9c5fedf38aa 100644
--- a/net/quic/quic_connection_test.cc
+++ b/net/quic/quic_connection_test.cc
@@ -465,9 +465,8 @@ class TestConnection : public QuicConnection {
kMaxPacketSize);
delete packet;
SerializedPacket serialized_packet(
- kDefaultPathId, packet_number, PACKET_6BYTE_PACKET_NUMBER,
- new QuicEncryptedPacket(buffer, encrypted_length, false), entropy_hash,
- has_ack, has_pending_frames);
+ kDefaultPathId, packet_number, PACKET_6BYTE_PACKET_NUMBER, buffer,
+ encrypted_length, entropy_hash, has_ack, has_pending_frames);
if (retransmittable == HAS_RETRANSMITTABLE_DATA) {
serialized_packet.retransmittable_frames.push_back(
QuicFrame(new QuicStreamFrame()));
@@ -773,8 +772,10 @@ class QuicConnectionTest : public ::testing::TestWithParam<TestParams> {
SerializedPacket serialized_packet =
QuicPacketCreatorPeer::SerializeAllFrames(&peer_creator_, frames,
buffer, kMaxPacketSize);
- scoped_ptr<QuicEncryptedPacket> encrypted(serialized_packet.packet);
- connection_.ProcessUdpPacket(kSelfAddress, kPeerAddress, *encrypted);
+ connection_.ProcessUdpPacket(
+ kSelfAddress, kPeerAddress,
+ QuicEncryptedPacket(serialized_packet.encrypted_buffer,
+ serialized_packet.encrypted_length));
return serialized_packet.entropy_hash;
}
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698