From af623ae7f866ceff0914348126098fb7d399c6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Wed, 20 Feb 2019 15:52:20 +0100 Subject: [PATCH] Delete unused file mock_video_codec_interface.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And corresponding build target. Bug: None Change-Id: Ic2915a316d2762367e089b6f8e16b502ea51a61a Reviewed-on: https://webrtc-review.googlesource.com/c/123198 Reviewed-by: Erik Språng Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#26779} --- modules/video_coding/BUILD.gn | 16 ---- .../include/mock/mock_video_codec_interface.h | 85 ------------------- 2 files changed, 101 deletions(-) delete mode 100644 modules/video_coding/include/mock/mock_video_codec_interface.h diff --git a/modules/video_coding/BUILD.gn b/modules/video_coding/BUILD.gn index 84681ee085..31d4abd230 100644 --- a/modules/video_coding/BUILD.gn +++ b/modules/video_coding/BUILD.gn @@ -218,19 +218,6 @@ rtc_source_set("video_codec_interface") { ] } -rtc_source_set("mock_headers") { - testonly = true - sources = [ - "include/mock/mock_video_codec_interface.h", - ] - deps = [ - ":video_codec_interface", - ":video_coding_utility", - "../..:webrtc_common", - "../../test:test_support", - ] -} - rtc_source_set("codec_globals_headers") { visibility = [ "*" ] sources = [ @@ -608,7 +595,6 @@ if (rtc_include_tests) { } deps = [ - ":mock_headers", ":video_codec_interface", ":video_coding", ":video_coding_utility", @@ -777,7 +763,6 @@ if (rtc_include_tests) { } deps = [ - ":mock_headers", ":video_codec_interface", ":video_codecs_test_framework", ":video_coding_utility", @@ -897,7 +882,6 @@ if (rtc_include_tests) { deps = [ ":codec_globals_headers", ":encoded_frame", - ":mock_headers", ":nack_module", ":packet", ":simulcast_test_fixture_impl", diff --git a/modules/video_coding/include/mock/mock_video_codec_interface.h b/modules/video_coding/include/mock/mock_video_codec_interface.h deleted file mode 100644 index 7d003591ea..0000000000 --- a/modules/video_coding/include/mock/mock_video_codec_interface.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2012 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 MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H_ -#define MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H_ - -#include -#include - -#include "modules/video_coding/include/video_codec_interface.h" -#include "test/gmock.h" - -namespace webrtc { - -// NOTE: Deprecated file, include api/mock_video_(encoder|decoder).h instead. - -class MockEncodedImageCallback : public EncodedImageCallback { - public: - MOCK_METHOD3(OnEncodedImage, - Result(const EncodedImage& encodedImage, - const CodecSpecificInfo* codecSpecificInfo, - const RTPFragmentationHeader* fragmentation)); -}; - -class MockVideoEncoder : public VideoEncoder { - public: - MOCK_CONST_METHOD2(Version, int32_t(int8_t* version, int32_t length)); - MOCK_METHOD3(InitEncode, - int32_t(const VideoCodec* codecSettings, - int32_t numberOfCores, - size_t maxPayloadSize)); - MOCK_METHOD3(Encode, - int32_t(const VideoFrame& inputImage, - const CodecSpecificInfo* codecSpecificInfo, - const std::vector* frame_types)); - MOCK_METHOD1(RegisterEncodeCompleteCallback, - int32_t(EncodedImageCallback* callback)); - MOCK_METHOD0(Release, int32_t()); - MOCK_METHOD0(Reset, int32_t()); - MOCK_METHOD2(SetRates, int32_t(uint32_t newBitRate, uint32_t frameRate)); - MOCK_METHOD2(SetRateAllocation, - int32_t(const VideoBitrateAllocation& newBitRate, - uint32_t frameRate)); -}; - -class MockDecodedImageCallback : public DecodedImageCallback { - public: - MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); // NOLINT - MOCK_METHOD2(Decoded, - int32_t(VideoFrame& decodedImage, // NOLINT - int64_t decode_time_ms)); - MOCK_METHOD3(Decoded, - void(VideoFrame& decodedImage, // NOLINT - absl::optional decode_time_ms, - absl::optional qp)); - MOCK_METHOD1(ReceivedDecodedReferenceFrame, - int32_t(const uint64_t pictureId)); - MOCK_METHOD1(ReceivedDecodedFrame, int32_t(const uint64_t pictureId)); -}; - -class MockVideoDecoder : public VideoDecoder { - public: - MOCK_METHOD2(InitDecode, - int32_t(const VideoCodec* codecSettings, int32_t numberOfCores)); - MOCK_METHOD4(Decode, - int32_t(const EncodedImage& inputImage, - bool missingFrames, - const CodecSpecificInfo* codecSpecificInfo, - int64_t renderTimeMs)); - MOCK_METHOD1(RegisterDecodeCompleteCallback, - int32_t(DecodedImageCallback* callback)); - MOCK_METHOD0(Release, int32_t()); - MOCK_METHOD0(Copy, VideoDecoder*()); -}; - -} // namespace webrtc - -#endif // MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H_