OLD | NEW |
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 27 matching lines...) Loading... |
38 MOCK_METHOD3(Encode, | 38 MOCK_METHOD3(Encode, |
39 int32_t(const VideoFrame& inputImage, | 39 int32_t(const VideoFrame& inputImage, |
40 const CodecSpecificInfo* codecSpecificInfo, | 40 const CodecSpecificInfo* codecSpecificInfo, |
41 const std::vector<FrameType>* frame_types)); | 41 const std::vector<FrameType>* frame_types)); |
42 MOCK_METHOD1(RegisterEncodeCompleteCallback, | 42 MOCK_METHOD1(RegisterEncodeCompleteCallback, |
43 int32_t(EncodedImageCallback* callback)); | 43 int32_t(EncodedImageCallback* callback)); |
44 MOCK_METHOD0(Release, int32_t()); | 44 MOCK_METHOD0(Release, int32_t()); |
45 MOCK_METHOD0(Reset, int32_t()); | 45 MOCK_METHOD0(Reset, int32_t()); |
46 MOCK_METHOD2(SetChannelParameters, int32_t(uint32_t packetLoss, int64_t rtt)); | 46 MOCK_METHOD2(SetChannelParameters, int32_t(uint32_t packetLoss, int64_t rtt)); |
47 MOCK_METHOD2(SetRates, int32_t(uint32_t newBitRate, uint32_t frameRate)); | 47 MOCK_METHOD2(SetRates, int32_t(uint32_t newBitRate, uint32_t frameRate)); |
| 48 MOCK_METHOD2(SetRateAllocation, |
| 49 int32_t(const BitrateAllocation& newBitRate, |
| 50 uint32_t frameRate)); |
48 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable)); | 51 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable)); |
49 }; | 52 }; |
50 | 53 |
51 class MockDecodedImageCallback : public DecodedImageCallback { | 54 class MockDecodedImageCallback : public DecodedImageCallback { |
52 public: | 55 public: |
53 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); // NOLINT | 56 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); // NOLINT |
54 MOCK_METHOD2(Decoded, | 57 MOCK_METHOD2(Decoded, |
55 int32_t(VideoFrame& decodedImage, // NOLINT | 58 int32_t(VideoFrame& decodedImage, // NOLINT |
56 int64_t decode_time_ms)); | 59 int64_t decode_time_ms)); |
57 MOCK_METHOD1(ReceivedDecodedReferenceFrame, | 60 MOCK_METHOD1(ReceivedDecodedReferenceFrame, |
(...skipping 13 matching lines...) Loading... |
71 int64_t renderTimeMs)); | 74 int64_t renderTimeMs)); |
72 MOCK_METHOD1(RegisterDecodeCompleteCallback, | 75 MOCK_METHOD1(RegisterDecodeCompleteCallback, |
73 int32_t(DecodedImageCallback* callback)); | 76 int32_t(DecodedImageCallback* callback)); |
74 MOCK_METHOD0(Release, int32_t()); | 77 MOCK_METHOD0(Release, int32_t()); |
75 MOCK_METHOD0(Copy, VideoDecoder*()); | 78 MOCK_METHOD0(Copy, VideoDecoder*()); |
76 }; | 79 }; |
77 | 80 |
78 } // namespace webrtc | 81 } // namespace webrtc |
79 | 82 |
80 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H
_ | 83 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H
_ |
OLD | NEW |