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_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 "remoting/host/capturer.h" | 8 #include "remoting/host/capturer.h" |
9 #include "remoting/host/chromoting_host_context.h" | 9 #include "remoting/host/chromoting_host_context.h" |
| 10 #include "remoting/host/client_session.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
11 | 12 |
12 namespace remoting { | 13 namespace remoting { |
13 | 14 |
14 class MockCapturer : public Capturer { | 15 class MockCapturer : public Capturer { |
15 public: | 16 public: |
16 MockCapturer(); | 17 MockCapturer(); |
17 virtual ~MockCapturer(); | 18 virtual ~MockCapturer(); |
18 | 19 |
19 MOCK_METHOD0(ScreenConfigurationChanged, void()); | 20 MOCK_METHOD0(ScreenConfigurationChanged, void()); |
(...skipping 19 matching lines...) Expand all Loading... |
39 MOCK_METHOD0(Stop, void()); | 40 MOCK_METHOD0(Stop, void()); |
40 MOCK_METHOD0(jingle_thread, JingleThread*()); | 41 MOCK_METHOD0(jingle_thread, JingleThread*()); |
41 MOCK_METHOD0(main_message_loop, MessageLoop*()); | 42 MOCK_METHOD0(main_message_loop, MessageLoop*()); |
42 MOCK_METHOD0(encode_message_loop, MessageLoop*()); | 43 MOCK_METHOD0(encode_message_loop, MessageLoop*()); |
43 MOCK_METHOD0(network_message_loop, MessageLoop*()); | 44 MOCK_METHOD0(network_message_loop, MessageLoop*()); |
44 | 45 |
45 private: | 46 private: |
46 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); | 47 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); |
47 }; | 48 }; |
48 | 49 |
| 50 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
| 51 public: |
| 52 MockClientSessionEventHandler(); |
| 53 virtual ~MockClientSessionEventHandler(); |
| 54 |
| 55 MOCK_METHOD1(LocalLoginSucceeded, |
| 56 void(scoped_refptr<protocol::ConnectionToClient>)); |
| 57 MOCK_METHOD1(LocalLoginFailed, |
| 58 void(scoped_refptr<protocol::ConnectionToClient>)); |
| 59 |
| 60 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
| 62 }; |
| 63 |
49 } // namespace remoting | 64 } // namespace remoting |
50 | 65 |
51 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 66 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |