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

Unified Diff: third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp b/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
index 9ed57cfd007888b9bbe1cd49fe39ec30bef5efeb..b27e4c65f167c8a3998c9cab6644b4039b9eac04 100644
--- a/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
+++ b/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
@@ -189,7 +189,7 @@ TEST(DOMWebSocketTest, invalidSubprotocols) {
V8TestingScope scope;
DOMWebSocketTestScope webSocketScope(scope.getExecutionContext());
Vector<String> subprotocols;
- subprotocols.append("@subprotocol-|'\"x\x01\x02\x03x");
+ subprotocols.push_back("@subprotocol-|'\"x\x01\x02\x03x");
webSocketScope.socket().connect("ws://example.com/", subprotocols,
scope.getExceptionState());
@@ -246,8 +246,8 @@ TEST(DOMWebSocketTest, channelConnectSuccess) {
V8TestingScope scope;
DOMWebSocketTestScope webSocketScope(scope.getExecutionContext());
Vector<String> subprotocols;
- subprotocols.append("aa");
- subprotocols.append("bb");
+ subprotocols.push_back("aa");
+ subprotocols.push_back("bb");
{
InSequence s;
@@ -271,8 +271,8 @@ TEST(DOMWebSocketTest, channelConnectFail) {
V8TestingScope scope;
DOMWebSocketTestScope webSocketScope(scope.getExecutionContext());
Vector<String> subprotocols;
- subprotocols.append("aa");
- subprotocols.append("bb");
+ subprotocols.push_back("aa");
+ subprotocols.push_back("bb");
{
InSequence s;
@@ -325,8 +325,8 @@ TEST(DOMWebSocketTest, connectSuccess) {
V8TestingScope scope;
DOMWebSocketTestScope webSocketScope(scope.getExecutionContext());
Vector<String> subprotocols;
- subprotocols.append("aa");
- subprotocols.append("bb");
+ subprotocols.push_back("aa");
+ subprotocols.push_back("bb");
{
InSequence s;
EXPECT_CALL(webSocketScope.channel(),
« no previous file with comments | « third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp ('k') | third_party/WebKit/Source/modules/webusb/USB.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698