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 "remoting/base/auto_thread_task_runner.h" | 9 #include "remoting/base/auto_thread_task_runner.h" |
10 #include "remoting/host/audio_capturer.h" | 10 #include "remoting/host/audio_capturer.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 host_.get(), | 185 host_.get(), |
186 task_runner_, // Audio | 186 task_runner_, // Audio |
187 task_runner_, // Input | 187 task_runner_, // Input |
188 task_runner_, // Video capture | 188 task_runner_, // Video capture |
189 task_runner_, // Video encode | 189 task_runner_, // Video encode |
190 task_runner_, // Network | 190 task_runner_, // Network |
191 task_runner_, // UI | 191 task_runner_, // UI |
192 connection.Pass(), | 192 connection.Pass(), |
193 desktop_environment_factory_.get(), | 193 desktop_environment_factory_.get(), |
194 base::TimeDelta(), | 194 base::TimeDelta(), |
195 NULL)); | 195 NULL, |
| 196 false)); |
196 | 197 |
197 connection_ptr->set_host_stub(client.get()); | 198 connection_ptr->set_host_stub(client.get()); |
198 | 199 |
199 if (authenticate) { | 200 if (authenticate) { |
200 task_runner_->PostTask( | 201 task_runner_->PostTask( |
201 FROM_HERE, | 202 FROM_HERE, |
202 base::Bind(&ClientSession::OnConnectionAuthenticated, | 203 base::Bind(&ClientSession::OnConnectionAuthenticated, |
203 base::Unretained(client.get()), connection_ptr)); | 204 base::Unretained(client.get()), connection_ptr)); |
204 if (!reject) { | 205 if (!reject) { |
205 task_runner_->PostTask( | 206 task_runner_->PostTask( |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 ExpectClientDisconnected(0, true, video_packet_sent, | 647 ExpectClientDisconnected(0, true, video_packet_sent, |
647 InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost)); | 648 InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost)); |
648 EXPECT_CALL(host_status_observer_, OnShutdown()); | 649 EXPECT_CALL(host_status_observer_, OnShutdown()); |
649 | 650 |
650 host_->Start(xmpp_login_); | 651 host_->Start(xmpp_login_); |
651 SimulateClientConnection(0, true, false); | 652 SimulateClientConnection(0, true, false); |
652 message_loop_.Run(); | 653 message_loop_.Run(); |
653 } | 654 } |
654 | 655 |
655 } // namespace remoting | 656 } // namespace remoting |
OLD | NEW |