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