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

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

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr Created 4 years 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_headers_stream.cc ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_headers_stream_test.cc
diff --git a/net/quic/core/quic_headers_stream_test.cc b/net/quic/core/quic_headers_stream_test.cc
index f8d9eb6bfc25f318b37bb3568b4f796cda9280cf..2feb739ce03cc9f3799d2c9986d408903e8dc2ff 100644
--- a/net/quic/core/quic_headers_stream_test.cc
+++ b/net/quic/core/quic_headers_stream_test.cc
@@ -264,7 +264,8 @@ class QuicHeadersStreamTest : public ::testing::TestWithParam<TestParamsTuple> {
QuicConsumedData SaveIovAndNotifyAckListener(
const QuicIOVector& data,
- const scoped_refptr<QuicAckListenerInterface>& ack_listener) {
+ const QuicReferenceCountedPointer<QuicAckListenerInterface>&
+ ack_listener) {
QuicConsumedData result = SaveIov(data);
if (ack_listener) {
ack_listener->OnPacketAcked(result.bytes_consumed,
@@ -953,7 +954,7 @@ TEST_P(QuicHeadersStreamTest, WritevStreamData) {
for (bool fin : {true, false}) {
for (bool use_ack_listener : {true, false}) {
- scoped_refptr<ForceHolAckListener> ack_listener;
+ QuicReferenceCountedPointer<ForceHolAckListener> ack_listener;
if (use_ack_listener) {
ack_listener = new ForceHolAckListener();
}
« no previous file with comments | « net/quic/core/quic_headers_stream.cc ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698