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

Side by Side Diff: net/websockets/websocket_handshake_stream_create_helper_test.cc

Issue 437353004: Add space to Accept-Encoding header values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update SDCH test tokenization. Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/websockets/websocket_handshake_stream_create_helper.h" 5 #include "net/websockets/websocket_handshake_stream_create_helper.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 HttpRequestHeaders headers; 113 HttpRequestHeaders headers;
114 headers.SetHeader("Host", "localhost"); 114 headers.SetHeader("Host", "localhost");
115 headers.SetHeader("Connection", "Upgrade"); 115 headers.SetHeader("Connection", "Upgrade");
116 headers.SetHeader("Pragma", "no-cache"); 116 headers.SetHeader("Pragma", "no-cache");
117 headers.SetHeader("Cache-Control", "no-cache"); 117 headers.SetHeader("Cache-Control", "no-cache");
118 headers.SetHeader("Upgrade", "websocket"); 118 headers.SetHeader("Upgrade", "websocket");
119 headers.SetHeader("Origin", origin); 119 headers.SetHeader("Origin", origin);
120 headers.SetHeader("Sec-WebSocket-Version", "13"); 120 headers.SetHeader("Sec-WebSocket-Version", "13");
121 headers.SetHeader("User-Agent", ""); 121 headers.SetHeader("User-Agent", "");
122 headers.SetHeader("Accept-Encoding", "gzip,deflate"); 122 headers.SetHeader("Accept-Encoding", "gzip, deflate");
123 headers.SetHeader("Accept-Language", "en-us,fr"); 123 headers.SetHeader("Accept-Language", "en-us,fr");
124 124
125 HttpResponseInfo response; 125 HttpResponseInfo response;
126 TestCompletionCallback dummy; 126 TestCompletionCallback dummy;
127 127
128 rv = handshake->SendRequest(headers, &response, dummy.callback()); 128 rv = handshake->SendRequest(headers, &response, dummy.callback());
129 129
130 EXPECT_EQ(OK, rv); 130 EXPECT_EQ(OK, rv);
131 131
132 rv = handshake->ReadResponseHeaders(dummy.callback()); 132 rv = handshake->ReadResponseHeaders(dummy.callback());
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 EXPECT_EQ( 196 EXPECT_EQ(
197 "permessage-deflate;" 197 "permessage-deflate;"
198 " client_max_window_bits=14; server_max_window_bits=14;" 198 " client_max_window_bits=14; server_max_window_bits=14;"
199 " server_no_context_takeover; client_no_context_takeover", 199 " server_no_context_takeover; client_no_context_takeover",
200 stream->GetExtensions()); 200 stream->GetExtensions());
201 } 201 }
202 202
203 } // namespace 203 } // namespace
204 } // namespace net 204 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job_unittest.cc ('k') | net/websockets/websocket_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698