diff --git a/webrtc/modules/video_capture/include/mock/mock_video_capture.h b/webrtc/modules/video_capture/include/mock/mock_video_capture.h deleted file mode 100644 index c030c02aee..0000000000 --- a/webrtc/modules/video_capture/include/mock/mock_video_capture.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source - * tree. An additional intellectual property rights grant can be found - * in the file PATENTS. All contributing project authors may - * be found in the AUTHORS file in the root of the source tree. - */ -#ifndef WEBRTC_MODULES_VIDEO_CAPTURE_INCLUDE_MOCK_MOCK_VIDEO_CAPTURE_H_ -#define WEBRTC_MODULES_VIDEO_CAPTURE_INCLUDE_MOCK_MOCK_VIDEO_CAPTURE_H_ - -#include "webrtc/modules/video_capture/include/video_capture.h" -#include "testing/gmock/include/gmock/gmock.h" - -namespace webrtc { - -class MockVideoCaptureModule : public VideoCaptureModule { - public: - // from Module - MOCK_METHOD0(TimeUntilNextProcess, int64_t()); - MOCK_METHOD0(Process, int32_t()); - - // from RefCountedModule - MOCK_CONST_METHOD0(AddRef, int32_t()); - MOCK_CONST_METHOD0(Release, int32_t()); - - // from VideoCaptureModule - MOCK_METHOD1(RegisterCaptureDataCallback, - void(VideoCaptureDataCallback& dataCallback)); - MOCK_METHOD0(DeRegisterCaptureDataCallback, void()); - MOCK_METHOD1(RegisterCaptureCallback, void(VideoCaptureFeedBack& callBack)); - MOCK_METHOD0(DeRegisterCaptureCallback, void()); - MOCK_METHOD1(StartCapture, int32_t(const VideoCaptureCapability& capability)); - MOCK_METHOD0(StopCapture, int32_t()); - MOCK_CONST_METHOD0(CurrentDeviceName, const char*()); - MOCK_METHOD0(CaptureStarted, bool()); - MOCK_METHOD1(CaptureSettings, int32_t(VideoCaptureCapability& settings)); - MOCK_METHOD1(SetCaptureDelay, void(int32_t delayMS)); - MOCK_METHOD0(CaptureDelay, int32_t()); - MOCK_METHOD1(SetCaptureRotation, int32_t(VideoRotation rotation)); - MOCK_METHOD1(SetApplyRotation, bool(bool)); - MOCK_METHOD0(GetApplyRotation, bool()); - MOCK_METHOD1(GetEncodeInterface, - VideoCaptureEncodeInterface*(const VideoCodec& codec)); - MOCK_METHOD1(EnableFrameRateCallback, void(const bool enable)); - MOCK_METHOD1(EnableNoPictureAlarm, void(const bool enable)); -}; - -} // namespace webrtc - -#endif // WEBRTC_MODULES_VIDEO_CAPTURE_INCLUDE_MOCK_MOCK_VIDEO_CAPTURE_H_ diff --git a/webrtc/video/video_capture_input_unittest.cc b/webrtc/video/video_capture_input_unittest.cc index 6fc8f75c02..2c9e0bada5 100644 --- a/webrtc/video/video_capture_input_unittest.cc +++ b/webrtc/video/video_capture_input_unittest.cc @@ -16,7 +16,6 @@ #include "webrtc/base/scoped_ptr.h" #include "webrtc/common.h" #include "webrtc/modules/utility/interface/mock/mock_process_thread.h" -#include "webrtc/modules/video_capture/include/mock/mock_video_capture.h" #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" #include "webrtc/system_wrappers/interface/event_wrapper.h" #include "webrtc/system_wrappers/interface/ref_count.h"