Remove MockVideoCapturer

This class is not used.

Review URL: https://codereview.webrtc.org/1403783002

Cr-Commit-Position: refs/heads/master@{#10360}
This commit is contained in:
magjed
2015-10-21 09:56:10 -07:00
committed by Commit bot
parent dfa2815b4f
commit f4d23b2254
2 changed files with 0 additions and 53 deletions

View File

@ -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_

View File

@ -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"