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

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

Issue 1684123004: Bypass the DataReductionProxy for all POST requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder parameters and change "" to std::string() Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // End-to-end tests for WebSocket. 5 // End-to-end tests for WebSocket.
6 // 6 //
7 // A python server is (re)started for each test, which is moderately 7 // A python server is (re)started for each test, which is moderately
8 // inefficient. However, it makes these tests a good fit for scenarios which 8 // inefficient. However, it makes these tests a good fit for scenarios which
9 // require special server configurations. 9 // require special server configurations.
10 10
11 #include <stdint.h> 11 #include <stdint.h>
bengr 2016/02/21 21:36:40 Add a blank line after this.
RyanSturm 2016/02/26 22:16:18 Done.
12 #include <string> 12 #include <string>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/bind_helpers.h" 15 #include "base/bind_helpers.h"
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/location.h" 17 #include "base/location.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/run_loop.h" 20 #include "base/run_loop.h"
21 #include "base/single_thread_task_runner.h" 21 #include "base/single_thread_task_runner.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 GURL url; 203 GURL url;
204 ProxyInfo proxy_info; 204 ProxyInfo proxy_info;
205 }; 205 };
206 206
207 const ResolvedProxyInfo& resolved_proxy_info() const { 207 const ResolvedProxyInfo& resolved_proxy_info() const {
208 return resolved_proxy_info_; 208 return resolved_proxy_info_;
209 } 209 }
210 210
211 protected: 211 protected:
212 void OnResolveProxy(const GURL& url, 212 void OnResolveProxy(const GURL& url,
213 const std::string& method,
213 int load_flags, 214 int load_flags,
214 const ProxyService& proxy_service, 215 const ProxyService& proxy_service,
215 ProxyInfo* result) override { 216 ProxyInfo* result) override {
216 resolved_proxy_info_.url = url; 217 resolved_proxy_info_.url = url;
217 resolved_proxy_info_.proxy_info = *result; 218 resolved_proxy_info_.proxy_info = *result;
218 } 219 }
219 220
220 void OnTunnelConnectCompleted(const HostPortPair& endpoint, 221 void OnTunnelConnectCompleted(const HostPortPair& endpoint,
221 const HostPortPair& proxy_server, 222 const HostPortPair& proxy_server,
222 int net_error) override {} 223 int net_error) override {}
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 GURL ws_url = ws_server.GetURL("header-continuation"); 511 GURL ws_url = ws_server.GetURL("header-continuation");
511 512
512 EXPECT_TRUE(ConnectAndWait(ws_url)); 513 EXPECT_TRUE(ConnectAndWait(ws_url));
513 EXPECT_EQ("permessage-deflate; server_max_window_bits=10", 514 EXPECT_EQ("permessage-deflate; server_max_window_bits=10",
514 event_interface_->extensions()); 515 event_interface_->extensions());
515 } 516 }
516 517
517 } // namespace 518 } // namespace
518 519
519 } // namespace net 520 } // namespace net
OLDNEW
« net/proxy/proxy_service_unittest.cc ('K') | « net/url_request/url_request_ftp_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698