| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |