| OLD | NEW |
| 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_stream.h" | 5 #include "net/websockets/websocket_stream.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" |
| 13 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 14 #include "base/metrics/histogram_samples.h" | 15 #include "base/metrics/histogram_samples.h" |
| 15 #include "base/metrics/statistics_recorder.h" | 16 #include "base/metrics/statistics_recorder.h" |
| 16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 17 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 18 #include "base/timer/mock_timer.h" | 19 #include "base/timer/mock_timer.h" |
| 19 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
| 20 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
| 21 #include "net/base/test_data_directory.h" | 22 #include "net/base/test_data_directory.h" |
| 22 #include "net/http/http_request_headers.h" | 23 #include "net/http/http_request_headers.h" |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 CreateAndConnectRawExpectations("ws://localhost/", NoSubProtocols(), | 1188 CreateAndConnectRawExpectations("ws://localhost/", NoSubProtocols(), |
| 1188 LocalhostOrigin(), socket_data.Pass()); | 1189 LocalhostOrigin(), socket_data.Pass()); |
| 1189 WaitUntilConnectDone(); | 1190 WaitUntilConnectDone(); |
| 1190 EXPECT_TRUE(has_failed()); | 1191 EXPECT_TRUE(has_failed()); |
| 1191 EXPECT_EQ("Establishing a tunnel via proxy server failed.", | 1192 EXPECT_EQ("Establishing a tunnel via proxy server failed.", |
| 1192 failure_message()); | 1193 failure_message()); |
| 1193 } | 1194 } |
| 1194 | 1195 |
| 1195 } // namespace | 1196 } // namespace |
| 1196 } // namespace net | 1197 } // namespace net |
| OLD | NEW |