OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "remoting/host/desktop_environment_fake.h" | |
6 | |
7 #include "base/task.h" | |
8 | |
9 using remoting::protocol::InputStub; | |
10 | |
11 namespace remoting { | |
12 | |
13 DesktopEnvironmentFake::DesktopEnvironmentFake(Capturer* capturer, | |
14 InputStub* input_stub) | |
15 : DesktopEnvironment(capturer, input_stub) { | |
16 } | |
17 | |
18 DesktopEnvironmentFake::~DesktopEnvironmentFake() {} | |
19 | |
20 void DesktopEnvironmentFake::BeginSessionRequest( | |
21 const protocol::LocalLoginCredentials* credentials, Task* done) { | |
22 DCHECK(event_handler_); | |
23 | |
24 // For unit-test, don't require a valid Unix user/password for connection. | |
25 event_handler_->LocalLoginSucceeded(); | |
26 | |
27 done->Run(); | |
28 delete done; | |
29 } | |
30 | |
31 } // namespace remoting | |
OLD | NEW |