Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: webrtc/modules/video_coding/codecs/interface/mock/mock_video_codec_interface.h

Issue 1414693006: Add DecodedImageCallback::Decoded() function with custom decode time value. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: addressed comments. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 30 matching lines...) Expand all
41 MOCK_METHOD0(Release, int32_t()); 41 MOCK_METHOD0(Release, int32_t());
42 MOCK_METHOD0(Reset, int32_t()); 42 MOCK_METHOD0(Reset, int32_t());
43 MOCK_METHOD2(SetChannelParameters, int32_t(uint32_t packetLoss, int64_t rtt)); 43 MOCK_METHOD2(SetChannelParameters, int32_t(uint32_t packetLoss, int64_t rtt));
44 MOCK_METHOD2(SetRates, int32_t(uint32_t newBitRate, uint32_t frameRate)); 44 MOCK_METHOD2(SetRates, int32_t(uint32_t newBitRate, uint32_t frameRate));
45 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable)); 45 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable));
46 }; 46 };
47 47
48 class MockDecodedImageCallback : public DecodedImageCallback { 48 class MockDecodedImageCallback : public DecodedImageCallback {
49 public: 49 public:
50 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); 50 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage));
51 MOCK_METHOD2(Decoded, int32_t(VideoFrame& decodedImage,
52 int64_t decode_time_ms));
51 MOCK_METHOD1(ReceivedDecodedReferenceFrame, 53 MOCK_METHOD1(ReceivedDecodedReferenceFrame,
52 int32_t(const uint64_t pictureId)); 54 int32_t(const uint64_t pictureId));
53 MOCK_METHOD1(ReceivedDecodedFrame, 55 MOCK_METHOD1(ReceivedDecodedFrame,
54 int32_t(const uint64_t pictureId)); 56 int32_t(const uint64_t pictureId));
55 }; 57 };
56 58
57 class MockVideoDecoder : public VideoDecoder { 59 class MockVideoDecoder : public VideoDecoder {
58 public: 60 public:
59 MOCK_METHOD2(InitDecode, int32_t(const VideoCodec* codecSettings, 61 MOCK_METHOD2(InitDecode, int32_t(const VideoCodec* codecSettings,
60 int32_t numberOfCores)); 62 int32_t numberOfCores));
61 MOCK_METHOD5(Decode, int32_t(const EncodedImage& inputImage, 63 MOCK_METHOD5(Decode, int32_t(const EncodedImage& inputImage,
62 bool missingFrames, 64 bool missingFrames,
63 const RTPFragmentationHeader* fragmentation, 65 const RTPFragmentationHeader* fragmentation,
64 const CodecSpecificInfo* codecSpecificInfo, 66 const CodecSpecificInfo* codecSpecificInfo,
65 int64_t renderTimeMs)); 67 int64_t renderTimeMs));
66 MOCK_METHOD1(RegisterDecodeCompleteCallback, 68 MOCK_METHOD1(RegisterDecodeCompleteCallback,
67 int32_t(DecodedImageCallback* callback)); 69 int32_t(DecodedImageCallback* callback));
68 MOCK_METHOD0(Release, int32_t()); 70 MOCK_METHOD0(Release, int32_t());
69 MOCK_METHOD0(Reset, int32_t()); 71 MOCK_METHOD0(Reset, int32_t());
70 MOCK_METHOD0(Copy, VideoDecoder*()); 72 MOCK_METHOD0(Copy, VideoDecoder*());
71 }; 73 };
72 74
73 } // namespace webrtc 75 } // namespace webrtc
74 76
75 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_IN TERFACE_H_ 77 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_IN TERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698