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/access_verifier.h" | 8 #include "remoting/host/access_verifier.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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 MockCapturer(); | 24 MockCapturer(); |
25 virtual ~MockCapturer(); | 25 virtual ~MockCapturer(); |
26 | 26 |
27 MOCK_METHOD0(ScreenConfigurationChanged, void()); | 27 MOCK_METHOD0(ScreenConfigurationChanged, void()); |
28 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format()); | 28 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format()); |
29 MOCK_METHOD0(ClearInvalidRegion, void()); | 29 MOCK_METHOD0(ClearInvalidRegion, void()); |
30 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region)); | 30 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region)); |
31 MOCK_METHOD1(InvalidateScreen, void(const SkISize&)); | 31 MOCK_METHOD1(InvalidateScreen, void(const SkISize&)); |
32 MOCK_METHOD0(InvalidateFullScreen, void()); | 32 MOCK_METHOD0(InvalidateFullScreen, void()); |
33 MOCK_METHOD1(CaptureInvalidRegion, void(CaptureCompletedCallback* callback)); | 33 MOCK_METHOD1(CaptureInvalidRegion, |
| 34 void(const CaptureCompletedCallback& callback)); |
34 MOCK_CONST_METHOD0(size_most_recent, const SkISize&()); | 35 MOCK_CONST_METHOD0(size_most_recent, const SkISize&()); |
35 | 36 |
36 private: | 37 private: |
37 DISALLOW_COPY_AND_ASSIGN(MockCapturer); | 38 DISALLOW_COPY_AND_ASSIGN(MockCapturer); |
38 }; | 39 }; |
39 | 40 |
40 class MockCurtain : public Curtain { | 41 class MockCurtain : public Curtain { |
41 public: | 42 public: |
42 MockCurtain(); | 43 MockCurtain(); |
43 virtual ~MockCurtain(); | 44 virtual ~MockCurtain(); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, | 135 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, |
135 const std::string& token)); | 136 const std::string& token)); |
136 | 137 |
137 private: | 138 private: |
138 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); | 139 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); |
139 }; | 140 }; |
140 | 141 |
141 } // namespace remoting | 142 } // namespace remoting |
142 | 143 |
143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 144 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |