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_channel.h" | 5 #include "net/websockets/websocket_channel.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/memory/ptr_util.h" | 23 #include "base/memory/ptr_util.h" |
24 #include "base/memory/weak_ptr.h" | 24 #include "base/memory/weak_ptr.h" |
25 #include "base/message_loop/message_loop.h" | 25 #include "base/message_loop/message_loop.h" |
26 #include "base/run_loop.h" | 26 #include "base/run_loop.h" |
27 #include "base/single_thread_task_runner.h" | 27 #include "base/single_thread_task_runner.h" |
28 #include "base/strings/string_piece.h" | 28 #include "base/strings/string_piece.h" |
29 #include "base/threading/thread_task_runner_handle.h" | 29 #include "base/threading/thread_task_runner_handle.h" |
30 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
31 #include "net/base/test_completion_callback.h" | 31 #include "net/base/test_completion_callback.h" |
32 #include "net/http/http_response_headers.h" | 32 #include "net/http/http_response_headers.h" |
| 33 #include "net/log/net_log_with_source.h" |
33 #include "net/url_request/url_request_context.h" | 34 #include "net/url_request/url_request_context.h" |
34 #include "net/websockets/websocket_errors.h" | 35 #include "net/websockets/websocket_errors.h" |
35 #include "net/websockets/websocket_event_interface.h" | 36 #include "net/websockets/websocket_event_interface.h" |
36 #include "net/websockets/websocket_handshake_request_info.h" | 37 #include "net/websockets/websocket_handshake_request_info.h" |
37 #include "net/websockets/websocket_handshake_response_info.h" | 38 #include "net/websockets/websocket_handshake_response_info.h" |
38 #include "net/websockets/websocket_handshake_stream_create_helper.h" | 39 #include "net/websockets/websocket_handshake_stream_create_helper.h" |
39 #include "net/websockets/websocket_mux.h" | 40 #include "net/websockets/websocket_mux.h" |
40 #include "testing/gmock/include/gmock/gmock.h" | 41 #include "testing/gmock/include/gmock/gmock.h" |
41 #include "testing/gtest/include/gtest/gtest.h" | 42 #include "testing/gtest/include/gtest/gtest.h" |
42 #include "url/gurl.h" | 43 #include "url/gurl.h" |
(...skipping 3470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3513 | 3514 |
3514 channel_->SendFrame( | 3515 channel_->SendFrame( |
3515 true, WebSocketFrameHeader::kOpCodeText, | 3516 true, WebSocketFrameHeader::kOpCodeText, |
3516 std::vector<char>(static_cast<size_t>(kMessageSize), 'a')); | 3517 std::vector<char>(static_cast<size_t>(kMessageSize), 'a')); |
3517 int new_send_quota = channel_->current_send_quota(); | 3518 int new_send_quota = channel_->current_send_quota(); |
3518 EXPECT_EQ(kMessageSize, initial_send_quota - new_send_quota); | 3519 EXPECT_EQ(kMessageSize, initial_send_quota - new_send_quota); |
3519 } | 3520 } |
3520 | 3521 |
3521 } // namespace | 3522 } // namespace |
3522 } // namespace net | 3523 } // namespace net |
OLD | NEW |