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 #include "extensions/browser/api/cast_channel/cast_socket.h" | 5 #include "extensions/browser/api/cast_channel/cast_socket.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/sys_byteorder.h" | 13 #include "base/sys_byteorder.h" |
14 #include "base/test/simple_test_tick_clock.h" | 14 #include "base/test/simple_test_tick_clock.h" |
15 #include "base/timer/mock_timer.h" | 15 #include "base/timer/mock_timer.h" |
16 #include "extensions/browser/api/cast_channel/cast_channel.pb.h" | |
17 #include "extensions/browser/api/cast_channel/cast_framer.h" | 16 #include "extensions/browser/api/cast_channel/cast_framer.h" |
18 #include "extensions/browser/api/cast_channel/cast_message_util.h" | 17 #include "extensions/browser/api/cast_channel/cast_message_util.h" |
19 #include "extensions/browser/api/cast_channel/logger.h" | 18 #include "extensions/browser/api/cast_channel/logger.h" |
| 19 #include "extensions/common/api/cast_channel/cast_channel.pb.h" |
20 #include "net/base/address_list.h" | 20 #include "net/base/address_list.h" |
21 #include "net/base/capturing_net_log.h" | 21 #include "net/base/capturing_net_log.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
24 #include "net/socket/socket_test_util.h" | 24 #include "net/socket/socket_test_util.h" |
25 #include "net/socket/ssl_client_socket.h" | 25 #include "net/socket/ssl_client_socket.h" |
26 #include "net/socket/tcp_client_socket.h" | 26 #include "net/socket/tcp_client_socket.h" |
27 #include "net/ssl/ssl_info.h" | 27 #include "net/ssl/ssl_info.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1204 A<const LastErrors&>())); | 1204 A<const LastErrors&>())); |
1205 ConnectHelper(); | 1205 ConnectHelper(); |
1206 | 1206 |
1207 EXPECT_EQ(cast_channel::READY_STATE_CLOSED, socket_->ready_state()); | 1207 EXPECT_EQ(cast_channel::READY_STATE_CLOSED, socket_->ready_state()); |
1208 EXPECT_EQ(cast_channel::CHANNEL_ERROR_INVALID_MESSAGE, | 1208 EXPECT_EQ(cast_channel::CHANNEL_ERROR_INVALID_MESSAGE, |
1209 socket_->error_state()); | 1209 socket_->error_state()); |
1210 } | 1210 } |
1211 } // namespace cast_channel | 1211 } // namespace cast_channel |
1212 } // namespace core_api | 1212 } // namespace core_api |
1213 } // namespace extensions | 1213 } // namespace extensions |
OLD | NEW |