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