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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "base/message_loop_proxy.h" | |
10 #include "remoting/base/auto_thread_task_runner.h" | 9 #include "remoting/base/auto_thread_task_runner.h" |
11 #include "remoting/host/audio_capturer.h" | 10 #include "remoting/host/audio_capturer.h" |
12 #include "remoting/host/chromoting_host.h" | 11 #include "remoting/host/chromoting_host.h" |
13 #include "remoting/host/chromoting_host_context.h" | 12 #include "remoting/host/chromoting_host_context.h" |
14 #include "remoting/host/desktop_environment.h" | 13 #include "remoting/host/desktop_environment.h" |
15 #include "remoting/host/host_mock_objects.h" | 14 #include "remoting/host/host_mock_objects.h" |
16 #include "remoting/host/screen_capturer_fake.h" | 15 #include "remoting/host/screen_capturer_fake.h" |
17 #include "remoting/jingle_glue/mock_objects.h" | 16 #include "remoting/jingle_glue/mock_objects.h" |
18 #include "remoting/proto/video.pb.h" | 17 #include "remoting/proto/video.pb.h" |
19 #include "remoting/protocol/errors.h" | 18 #include "remoting/protocol/errors.h" |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 ExpectClientDisconnected(0, true, video_packet_sent, | 646 ExpectClientDisconnected(0, true, video_packet_sent, |
648 InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost)); | 647 InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost)); |
649 EXPECT_CALL(host_status_observer_, OnShutdown()); | 648 EXPECT_CALL(host_status_observer_, OnShutdown()); |
650 | 649 |
651 host_->Start(xmpp_login_); | 650 host_->Start(xmpp_login_); |
652 SimulateClientConnection(0, true, false); | 651 SimulateClientConnection(0, true, false); |
653 message_loop_.Run(); | 652 message_loop_.Run(); |
654 } | 653 } |
655 | 654 |
656 } // namespace remoting | 655 } // namespace remoting |
OLD | NEW |