Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: remoting/host/chromoting_host_unittest.cc

Issue 138753005: Add gnubby authentication to remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698