OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license | |
5 * that can be found in the LICENSE file in the root of the source | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_INCLUDE_MOCK_MOCK_VIDEO_CAPTURE_H_ | |
11 #define WEBRTC_MODULES_VIDEO_CAPTURE_INCLUDE_MOCK_MOCK_VIDEO_CAPTURE_H_ | |
12 | |
13 #include "webrtc/modules/video_capture/include/video_capture.h" | |
14 #include "testing/gmock/include/gmock/gmock.h" | |
15 | |
16 namespace webrtc { | |
17 | |
18 class MockVideoCaptureModule : public VideoCaptureModule { | |
19 public: | |
20 // from Module | |
21 MOCK_METHOD0(TimeUntilNextProcess, int64_t()); | |
22 MOCK_METHOD0(Process, int32_t()); | |
23 | |
24 // from RefCountedModule | |
25 MOCK_CONST_METHOD0(AddRef, int32_t()); | |
26 MOCK_CONST_METHOD0(Release, int32_t()); | |
27 | |
28 // from VideoCaptureModule | |
29 MOCK_METHOD1(RegisterCaptureDataCallback, | |
30 void(VideoCaptureDataCallback& dataCallback)); | |
31 MOCK_METHOD0(DeRegisterCaptureDataCallback, void()); | |
32 MOCK_METHOD1(RegisterCaptureCallback, void(VideoCaptureFeedBack& callBack)); | |
33 MOCK_METHOD0(DeRegisterCaptureCallback, void()); | |
34 MOCK_METHOD1(StartCapture, int32_t(const VideoCaptureCapability& capability)); | |
35 MOCK_METHOD0(StopCapture, int32_t()); | |
36 MOCK_CONST_METHOD0(CurrentDeviceName, const char*()); | |
37 MOCK_METHOD0(CaptureStarted, bool()); | |
38 MOCK_METHOD1(CaptureSettings, int32_t(VideoCaptureCapability& settings)); | |
39 MOCK_METHOD1(SetCaptureDelay, void(int32_t delayMS)); | |
40 MOCK_METHOD0(CaptureDelay, int32_t()); | |
41 MOCK_METHOD1(SetCaptureRotation, int32_t(VideoRotation rotation)); | |
42 MOCK_METHOD1(SetApplyRotation, bool(bool)); | |
43 MOCK_METHOD0(GetApplyRotation, bool()); | |
44 MOCK_METHOD1(GetEncodeInterface, | |
45 VideoCaptureEncodeInterface*(const VideoCodec& codec)); | |
46 MOCK_METHOD1(EnableFrameRateCallback, void(const bool enable)); | |
47 MOCK_METHOD1(EnableNoPictureAlarm, void(const bool enable)); | |
48 }; | |
49 | |
50 } // namespace webrtc | |
51 | |
52 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_INCLUDE_MOCK_MOCK_VIDEO_CAPTURE_H_ | |
OLD | NEW |