| 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" |
| 11 #include "remoting/host/client_connection.h" | 11 #include "remoting/host/client_connection.h" |
| 12 #include "remoting/host/event_executor.h" | 12 #include "remoting/host/event_executor.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 | 14 |
| 15 namespace remoting { | 15 namespace remoting { |
| 16 | 16 |
| 17 class MockCapturer : public Capturer { | 17 class MockCapturer : public Capturer { |
| 18 public: | 18 public: |
| 19 MockCapturer() {} | 19 MockCapturer() {} |
| 20 | 20 |
| 21 MOCK_METHOD0(ScreenConfigurationChanged, void()); |
| 22 MOCK_METHOD1(InvalidateRects, void(const InvalidRects& inval_rects)); |
| 23 MOCK_METHOD0(InvalidateFullScreen, void()); |
| 24 MOCK_METHOD0(CalculateInvalidRects, void()); |
| 21 MOCK_METHOD1(CaptureInvalidRects, void(CaptureCompletedCallback* callback)); | 25 MOCK_METHOD1(CaptureInvalidRects, void(CaptureCompletedCallback* callback)); |
| 22 MOCK_METHOD2(CaptureRects, void(const RectVector& rects, | 26 MOCK_METHOD2(CaptureRects, void(const InvalidRects& rects, |
| 23 CaptureCompletedCallback* callback)); | 27 CaptureCompletedCallback* callback)); |
| 24 MOCK_METHOD1(InvalidateRects, void(const RectVector& inval_rects)); | |
| 25 MOCK_METHOD0(InvalidateFullScreen, void()); | |
| 26 MOCK_METHOD0(ScreenConfigurationChanged, void()); | |
| 27 MOCK_CONST_METHOD0(width, int()); | 28 MOCK_CONST_METHOD0(width, int()); |
| 28 MOCK_CONST_METHOD0(height, int()); | 29 MOCK_CONST_METHOD0(height, int()); |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(MockCapturer); | 32 DISALLOW_COPY_AND_ASSIGN(MockCapturer); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 class MockEventExecutor : public EventExecutor { | 35 class MockEventExecutor : public EventExecutor { |
| 35 public: | 36 public: |
| 36 MockEventExecutor() {} | 37 MockEventExecutor() {} |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer)); | 72 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer)); |
| 72 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer)); | 73 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer)); |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler); | 76 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace remoting | 79 } // namespace remoting |
| 79 | 80 |
| 80 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ | 81 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |