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

Unified Diff: net/websockets/websocket_net_log_params_unittest.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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_net_log_params.cc ('k') | webkit/plugins/npapi/plugin_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_net_log_params_unittest.cc
diff --git a/net/websockets/websocket_net_log_params_unittest.cc b/net/websockets/websocket_net_log_params_unittest.cc
index f6244428970011ab7083387c5939c0e2b87e4863..5ae937c8aa95054c6ec30043dfdc38a4cf8384e9 100644
--- a/net/websockets/websocket_net_log_params_unittest.cc
+++ b/net/websockets/websocket_net_log_params_unittest.cc
@@ -13,16 +13,19 @@
TEST(NetLogWebSocketHandshakeParameterTest, ToValue) {
ListValue* list = new ListValue();
- list->Append(new StringValue("GET /demo HTTP/1.1"));
- list->Append(new StringValue("Host: example.com"));
- list->Append(new StringValue("Connection: Upgrade"));
- list->Append(new StringValue("Sec-WebSocket-Key2: 12998 5 Y3 1 .P00"));
- list->Append(new StringValue("Sec-WebSocket-Protocol: sample"));
- list->Append(new StringValue("Upgrade: WebSocket"));
- list->Append(new StringValue("Sec-WebSocket-Key1: 4 @1 46546xW%0l 1 5"));
- list->Append(new StringValue("Origin: http://example.com"));
- list->Append(new StringValue(""));
- list->Append(new StringValue("\\x00\\x01\\x0a\\x0d\\xff\\xfe\\x0d\\x0a"));
+ list->Append(base::StringValue::New("GET /demo HTTP/1.1"));
+ list->Append(base::StringValue::New("Host: example.com"));
+ list->Append(base::StringValue::New("Connection: Upgrade"));
+ list->Append(
+ base::StringValue::New("Sec-WebSocket-Key2: 12998 5 Y3 1 .P00"));
+ list->Append(base::StringValue::New("Sec-WebSocket-Protocol: sample"));
+ list->Append(base::StringValue::New("Upgrade: WebSocket"));
+ list->Append(
+ base::StringValue::New("Sec-WebSocket-Key1: 4 @1 46546xW%0l 1 5"));
+ list->Append(base::StringValue::New("Origin: http://example.com"));
+ list->Append(base::StringValue::New(""));
+ list->Append(
+ base::StringValue::New("\\x00\\x01\\x0a\\x0d\\xff\\xfe\\x0d\\x0a"));
DictionaryValue expected;
expected.Set("headers", list);
« no previous file with comments | « net/websockets/websocket_net_log_params.cc ('k') | webkit/plugins/npapi/plugin_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698