OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_ |
6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_ | 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_ |
7 | 7 |
8 #include "remoting/host/desktop_environment.h" | 8 #include "remoting/host/desktop_environment.h" |
9 | 9 |
10 namespace remoting { | 10 namespace remoting { |
11 | 11 |
12 // A DesktopEnvironmentFake allows connection to proceed for unit-testing, | 12 // A DesktopEnvironmentFake allows connection to proceed for unit-testing, |
13 // without needing a valid user/password for the system. | 13 // without needing a valid user/password for the system. |
14 class DesktopEnvironmentFake : public DesktopEnvironment { | 14 class DesktopEnvironmentFake : public DesktopEnvironment { |
15 public: | 15 public: |
16 DesktopEnvironmentFake(Capturer* capturer, protocol::InputStub* input_stub); | 16 DesktopEnvironmentFake(Capturer* capturer, protocol::InputStub* input_stub); |
17 virtual ~DesktopEnvironmentFake(); | 17 virtual ~DesktopEnvironmentFake(); |
18 | 18 |
19 // Overridden to do no authentication. | 19 // Overridden to do no authentication. |
20 virtual void BeginSessionRequest( | 20 virtual void BeginSessionRequest( |
21 const protocol::LocalLoginCredentials* credentials, Task* done); | 21 protocol::ConnectionToClient* connection, |
| 22 const protocol::LocalLoginCredentials* credentials, |
| 23 Task* done); |
22 | 24 |
23 private: | 25 private: |
24 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFake); | 26 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFake); |
25 }; | 27 }; |
26 | 28 |
27 } // namespace remoting | 29 } // namespace remoting |
28 | 30 |
29 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_ | 31 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FAKE_H_ |
OLD | NEW |