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

Unified Diff: net/websockets/websocket_basic_stream_test.cc

Issue 1157403005: Subsituting pattern ScopedVector push_back.(ptr.release()) with push_back(ptr.Pass()) in net/websoc… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/websockets/websocket_basic_stream.cc ('k') | net/websockets/websocket_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_basic_stream_test.cc
diff --git a/net/websockets/websocket_basic_stream_test.cc b/net/websockets/websocket_basic_stream_test.cc
index 69aab3c767d6b2b36f840f5ac56626e5d04167d8..839c568aa19834ddd06d0bc5502d2f03a6b868f2 100644
--- a/net/websockets/websocket_basic_stream_test.cc
+++ b/net/websockets/websocket_basic_stream_test.cc
@@ -253,7 +253,7 @@ class WebSocketBasicStreamSocketWriteTest
header.final = true;
header.masked = true;
header.payload_length = payload_size;
- frames_.push_back(frame.release());
+ frames_.push_back(frame.Pass());
}
// Creates a stream that expects the listed writes.
@@ -896,7 +896,7 @@ TEST_F(WebSocketBasicStreamSocketWriteTest, WriteNullPong) {
header.masked = true;
header.payload_length = 0;
ScopedVector<WebSocketFrame> frames;
- frames.push_back(frame.release());
+ frames.push_back(frame.Pass());
EXPECT_EQ(OK, stream_->WriteFrames(&frames, cb_.callback()));
}
@@ -920,7 +920,7 @@ TEST_F(WebSocketBasicStreamSocketTest, WriteNonNulMask) {
header.final = true;
header.masked = true;
header.payload_length = payload_size;
- frames_.push_back(frame.release());
+ frames_.push_back(frame.Pass());
EXPECT_EQ(OK, stream_->WriteFrames(&frames_, cb_.callback()));
}
« no previous file with comments | « net/websockets/websocket_basic_stream.cc ('k') | net/websockets/websocket_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698