OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/host/daemon_process.h" | 5 #include "remoting/host/daemon_process.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/message_loop/message_loop.h" |
15 #include "base/process/process.h" | 16 #include "base/process/process.h" |
16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
17 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
18 #include "ipc/ipc_channel_handle.h" | 19 #include "ipc/ipc_channel_handle.h" |
19 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
20 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
21 #include "remoting/base/auto_thread_task_runner.h" | 22 #include "remoting/base/auto_thread_task_runner.h" |
22 #include "remoting/host/chromoting_messages.h" | 23 #include "remoting/host/chromoting_messages.h" |
23 #include "remoting/host/desktop_session.h" | 24 #include "remoting/host/desktop_session.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 EXPECT_EQ(1u, desktop_sessions().size()); | 341 EXPECT_EQ(1u, desktop_sessions().size()); |
341 EXPECT_EQ(id, desktop_sessions().front()->id()); | 342 EXPECT_EQ(id, desktop_sessions().front()->id()); |
342 | 343 |
343 EXPECT_TRUE(daemon_process_->OnMessageReceived( | 344 EXPECT_TRUE(daemon_process_->OnMessageReceived( |
344 ChromotingNetworkHostMsg_ConnectTerminal(id, resolution, false))); | 345 ChromotingNetworkHostMsg_ConnectTerminal(id, resolution, false))); |
345 EXPECT_TRUE(desktop_sessions().empty()); | 346 EXPECT_TRUE(desktop_sessions().empty()); |
346 EXPECT_EQ(0, terminal_id_); | 347 EXPECT_EQ(0, terminal_id_); |
347 } | 348 } |
348 | 349 |
349 } // namespace remoting | 350 } // namespace remoting |
OLD | NEW |