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 |
11 #include <stdint.h> | 11 #include <stdint.h> |
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/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
19 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
20 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
21 #include "base/strings/string_piece.h" | 22 #include "base/strings/string_piece.h" |
22 #include "base/thread_task_runner_handle.h" | 23 #include "base/thread_task_runner_handle.h" |
23 #include "net/base/auth.h" | 24 #include "net/base/auth.h" |
24 #include "net/base/network_delegate.h" | 25 #include "net/base/network_delegate.h" |
25 #include "net/base/test_data_directory.h" | 26 #include "net/base/test_data_directory.h" |
26 #include "net/proxy/proxy_service.h" | 27 #include "net/proxy/proxy_service.h" |
27 #include "net/test/embedded_test_server/embedded_test_server.h" | 28 #include "net/test/embedded_test_server/embedded_test_server.h" |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 GURL ws_url = ws_server.GetURL("header-continuation"); | 493 GURL ws_url = ws_server.GetURL("header-continuation"); |
493 | 494 |
494 EXPECT_TRUE(ConnectAndWait(ws_url)); | 495 EXPECT_TRUE(ConnectAndWait(ws_url)); |
495 EXPECT_EQ("permessage-deflate; server_max_window_bits=10", | 496 EXPECT_EQ("permessage-deflate; server_max_window_bits=10", |
496 event_interface_->extensions()); | 497 event_interface_->extensions()); |
497 } | 498 } |
498 | 499 |
499 } // namespace | 500 } // namespace |
500 | 501 |
501 } // namespace net | 502 } // namespace net |
OLD | NEW |