| 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/chromoting_host.h" | 5 #include "remoting/host/chromoting_host.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/message_loop/message_loop.h" |
| 13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 14 #include "remoting/base/auto_thread_task_runner.h" | 15 #include "remoting/base/auto_thread_task_runner.h" |
| 15 #include "remoting/host/audio_capturer.h" | 16 #include "remoting/host/audio_capturer.h" |
| 16 #include "remoting/host/chromoting_host_context.h" | 17 #include "remoting/host/chromoting_host_context.h" |
| 17 #include "remoting/host/fake_desktop_environment.h" | 18 #include "remoting/host/fake_desktop_environment.h" |
| 18 #include "remoting/host/fake_mouse_cursor_monitor.h" | 19 #include "remoting/host/fake_mouse_cursor_monitor.h" |
| 19 #include "remoting/host/host_mock_objects.h" | 20 #include "remoting/host/host_mock_objects.h" |
| 20 #include "remoting/proto/video.pb.h" | 21 #include "remoting/proto/video.pb.h" |
| 21 #include "remoting/protocol/errors.h" | 22 #include "remoting/protocol/errors.h" |
| 22 #include "remoting/protocol/fake_connection_to_client.h" | 23 #include "remoting/protocol/fake_connection_to_client.h" |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 SimulateClientConnection(0, true, false); | 376 SimulateClientConnection(0, true, false); |
| 376 | 377 |
| 377 std::string channel_name("ChannelName"); | 378 std::string channel_name("ChannelName"); |
| 378 protocol::TransportRoute route; | 379 protocol::TransportRoute route; |
| 379 EXPECT_CALL(host_status_observer_, | 380 EXPECT_CALL(host_status_observer_, |
| 380 OnClientRouteChange(session_jid1_, channel_name, _)); | 381 OnClientRouteChange(session_jid1_, channel_name, _)); |
| 381 host_->OnSessionRouteChange(get_client(0), channel_name, route); | 382 host_->OnSessionRouteChange(get_client(0), channel_name, route); |
| 382 } | 383 } |
| 383 | 384 |
| 384 } // namespace remoting | 385 } // namespace remoting |
| OLD | NEW |