| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_HOST_MOCK_OBJECTS_H_ |
| 6 #define REMOTING_HOST_MOCK_OBJECTS_H_ | 6 #define REMOTING_HOST_MOCK_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "media/base/data_buffer.h" | 8 #include "media/base/data_buffer.h" |
| 9 #include "remoting/base/protocol_decoder.h" | 9 #include "remoting/base/protocol_decoder.h" |
| 10 #include "remoting/host/capturer.h" | 10 #include "remoting/host/capturer.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 CaptureCompletedCallback* callback)); | 27 CaptureCompletedCallback* callback)); |
| 28 MOCK_CONST_METHOD0(width, int()); | 28 MOCK_CONST_METHOD0(width, int()); |
| 29 MOCK_CONST_METHOD0(height, int()); | 29 MOCK_CONST_METHOD0(height, int()); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(MockCapturer); | 32 DISALLOW_COPY_AND_ASSIGN(MockCapturer); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 class MockEventExecutor : public EventExecutor { | 35 class MockEventExecutor : public EventExecutor { |
| 36 public: | 36 public: |
| 37 MockEventExecutor() {} | 37 MockEventExecutor(Capturer* capturer) : EventExecutor(capturer) {} |
| 38 | 38 |
| 39 MOCK_METHOD1(HandleInputEvents, void(ClientMessageList* messages)); | 39 MOCK_METHOD1(HandleInputEvents, void(ClientMessageList* messages)); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); | 42 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class MockClientConnection : public ClientConnection { | 45 class MockClientConnection : public ClientConnection { |
| 46 public: | 46 public: |
| 47 MockClientConnection(){} | 47 MockClientConnection(){} |
| (...skipping 24 matching lines...) Expand all Loading... |
| 72 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer)); | 72 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer)); |
| 73 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer)); | 73 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer)); |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler); | 76 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace remoting | 79 } // namespace remoting |
| 80 | 80 |
| 81 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ | 81 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |