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

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

Issue 2453973003: Add a QUIC proxy server to the list of QUIC servers supported at start up (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « net/quic/chromium/quic_stream_factory_test.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 const HttpResponseHeaders& response_headers) override {} 233 const HttpResponseHeaders& response_headers) override {}
234 bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) override { 234 bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) override {
235 return true; 235 return true;
236 } 236 }
237 void GetAlternativeProxy( 237 void GetAlternativeProxy(
238 const GURL& url, 238 const GURL& url,
239 const ProxyServer& resolved_proxy_server, 239 const ProxyServer& resolved_proxy_server,
240 ProxyServer* alternative_proxy_server) const override {} 240 ProxyServer* alternative_proxy_server) const override {}
241 void OnAlternativeProxyBroken( 241 void OnAlternativeProxyBroken(
242 const ProxyServer& alternative_proxy_server) override {} 242 const ProxyServer& alternative_proxy_server) override {}
243 ProxyServer GetDefaultAlternativeProxy() const override {
244 return ProxyServer();
245 }
243 246
244 private: 247 private:
245 ResolvedProxyInfo resolved_proxy_info_; 248 ResolvedProxyInfo resolved_proxy_info_;
246 249
247 DISALLOW_COPY_AND_ASSIGN(TestProxyDelegateWithProxyInfo); 250 DISALLOW_COPY_AND_ASSIGN(TestProxyDelegateWithProxyInfo);
248 }; 251 };
249 252
250 class WebSocketEndToEndTest : public ::testing::Test { 253 class WebSocketEndToEndTest : public ::testing::Test {
251 protected: 254 protected:
252 WebSocketEndToEndTest() 255 WebSocketEndToEndTest()
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 GURL ws_url = ws_server.GetURL("header-continuation"); 522 GURL ws_url = ws_server.GetURL("header-continuation");
520 523
521 EXPECT_TRUE(ConnectAndWait(ws_url)); 524 EXPECT_TRUE(ConnectAndWait(ws_url));
522 EXPECT_EQ("permessage-deflate; server_max_window_bits=10", 525 EXPECT_EQ("permessage-deflate; server_max_window_bits=10",
523 event_interface_->extensions()); 526 event_interface_->extensions());
524 } 527 }
525 528
526 } // namespace 529 } // namespace
527 530
528 } // namespace net 531 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory_test.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698