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

Unified Diff: net/quic/core/quic_sent_packet_manager_test.cc

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_packets.cc ('k') | net/quic/core/quic_server_session_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_sent_packet_manager_test.cc
diff --git a/net/quic/core/quic_sent_packet_manager_test.cc b/net/quic/core/quic_sent_packet_manager_test.cc
index ac47ba62952ef3179f084ee8f663d8c0fb608bd8..9a544a2b196ab740231c4c7b096158d7304c50b5 100644
--- a/net/quic/core/quic_sent_packet_manager_test.cc
+++ b/net/quic/core/quic_sent_packet_manager_test.cc
@@ -8,6 +8,7 @@
#include "net/quic/core/quic_flags.h"
#include "net/quic/platform/api/quic_ptr_util.h"
+#include "net/quic/platform/api/quic_string_piece.h"
#include "net/quic/test_tools/quic_config_peer.h"
#include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
#include "net/quic/test_tools/quic_test_utils.h"
@@ -194,8 +195,8 @@ class QuicSentPacketManagerTest : public ::testing::Test {
SerializedPacket packet(packet_number, PACKET_6BYTE_PACKET_NUMBER, nullptr,
kDefaultLength, false, false);
if (retransmittable) {
- packet.retransmittable_frames.push_back(
- QuicFrame(new QuicStreamFrame(kStreamId, false, 0, StringPiece())));
+ packet.retransmittable_frames.push_back(QuicFrame(
+ new QuicStreamFrame(kStreamId, false, 0, QuicStringPiece())));
}
return packet;
}
@@ -218,7 +219,7 @@ class QuicSentPacketManagerTest : public ::testing::Test {
.WillOnce(Return(true));
SerializedPacket packet(CreateDataPacket(packet_number));
packet.retransmittable_frames.push_back(
- QuicFrame(new QuicStreamFrame(1, false, 0, StringPiece())));
+ QuicFrame(new QuicStreamFrame(1, false, 0, QuicStringPiece())));
packet.has_crypto_handshake = IS_HANDSHAKE;
manager_.OnPacketSent(&packet, 0, clock_.Now(), NOT_RETRANSMISSION,
HAS_RETRANSMITTABLE_DATA);
« no previous file with comments | « net/quic/core/quic_packets.cc ('k') | net/quic/core/quic_server_session_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698