| 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" |
| 11 #include "remoting/host/chromoting_host_context.h" | 11 #include "remoting/host/chromoting_host_context.h" |
| 12 #include "remoting/host/client_session.h" | 12 #include "remoting/host/client_session.h" |
| 13 #include "remoting/host/continue_window.h" | 13 #include "remoting/host/continue_window.h" |
| 14 #include "remoting/host/disconnect_window.h" | 14 #include "remoting/host/disconnect_window.h" |
| 15 #include "remoting/host/event_executor.h" | 15 #include "remoting/host/event_executor.h" |
| 16 #include "remoting/host/local_input_monitor.h" | 16 #include "remoting/host/local_input_monitor.h" |
| 17 #include "remoting/host/user_authenticator.h" | 17 #include "remoting/host/user_authenticator.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 | 19 |
| 20 namespace remoting { | 20 namespace remoting { |
| 21 | 21 |
| 22 class MockCapturer : public Capturer { | 22 class MockCapturer : public Capturer { |
| 23 public: | 23 public: |
| 24 MockCapturer(); | 24 MockCapturer(); |
| 25 virtual ~MockCapturer(); | 25 virtual ~MockCapturer(); |
| 26 | 26 |
| 27 MOCK_METHOD0(Start, void()); | 27 MOCK_METHOD1(Start, void(const CursorShapeChangedCallback& callback)); |
| 28 MOCK_METHOD0(Stop, void()); | 28 MOCK_METHOD0(Stop, void()); |
| 29 MOCK_METHOD0(ScreenConfigurationChanged, void()); | 29 MOCK_METHOD0(ScreenConfigurationChanged, void()); |
| 30 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format()); | 30 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format()); |
| 31 MOCK_METHOD0(ClearInvalidRegion, void()); | 31 MOCK_METHOD0(ClearInvalidRegion, void()); |
| 32 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region)); | 32 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region)); |
| 33 MOCK_METHOD1(InvalidateScreen, void(const SkISize&)); | 33 MOCK_METHOD1(InvalidateScreen, void(const SkISize&)); |
| 34 MOCK_METHOD0(InvalidateFullScreen, void()); | 34 MOCK_METHOD0(InvalidateFullScreen, void()); |
| 35 MOCK_METHOD1(CaptureInvalidRegion, | 35 MOCK_METHOD1(CaptureInvalidRegion, |
| 36 void(const CaptureCompletedCallback& callback)); | 36 void(const CaptureCompletedCallback& callback)); |
| 37 MOCK_CONST_METHOD0(size_most_recent, const SkISize&()); | 37 MOCK_CONST_METHOD0(size_most_recent, const SkISize&()); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 143 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
| 144 const std::string& password)); | 144 const std::string& password)); |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 147 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace remoting | 150 } // namespace remoting |
| 151 | 151 |
| 152 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 152 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |