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 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
7 | 7 |
8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
9 #include "remoting/host/capturer.h" | 9 #include "remoting/host/capturer.h" |
10 #include "remoting/host/curtain.h" | 10 #include "remoting/host/curtain.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual ~MockCurtain(); | 46 virtual ~MockCurtain(); |
47 | 47 |
48 MOCK_METHOD1(EnableCurtainMode, void(bool enable)); | 48 MOCK_METHOD1(EnableCurtainMode, void(bool enable)); |
49 }; | 49 }; |
50 | 50 |
51 class MockDisconnectWindow : public DisconnectWindow { | 51 class MockDisconnectWindow : public DisconnectWindow { |
52 public: | 52 public: |
53 MockDisconnectWindow(); | 53 MockDisconnectWindow(); |
54 virtual ~MockDisconnectWindow(); | 54 virtual ~MockDisconnectWindow(); |
55 | 55 |
56 MOCK_METHOD2(Show, void(remoting::ChromotingHost* host, | 56 MOCK_METHOD3(Show, void(remoting::ChromotingHost* host, |
| 57 const DisconnectCallback& disconnect_callback, |
57 const std::string& username)); | 58 const std::string& username)); |
58 MOCK_METHOD0(Hide, void()); | 59 MOCK_METHOD0(Hide, void()); |
59 }; | 60 }; |
60 | 61 |
61 class MockLocalInputMonitor : public LocalInputMonitor { | 62 class MockLocalInputMonitor : public LocalInputMonitor { |
62 public: | 63 public: |
63 MockLocalInputMonitor(); | 64 MockLocalInputMonitor(); |
64 virtual ~MockLocalInputMonitor(); | 65 virtual ~MockLocalInputMonitor(); |
65 | 66 |
66 MOCK_METHOD1(Start, void(remoting::ChromotingHost* host)); | 67 MOCK_METHOD1(Start, void(remoting::ChromotingHost* host)); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 141 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
141 const std::string& password)); | 142 const std::string& password)); |
142 | 143 |
143 private: | 144 private: |
144 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 145 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
145 }; | 146 }; |
146 | 147 |
147 } // namespace remoting | 148 } // namespace remoting |
148 | 149 |
149 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 150 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |