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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 class MockVideoEncoder : public VideoEncoder { | 29 class MockVideoEncoder : public VideoEncoder { |
30 public: | 30 public: |
31 MOCK_CONST_METHOD2(Version, int32_t(int8_t *version, int32_t length)); | 31 MOCK_CONST_METHOD2(Version, int32_t(int8_t *version, int32_t length)); |
32 MOCK_METHOD3(InitEncode, int32_t(const VideoCodec* codecSettings, | 32 MOCK_METHOD3(InitEncode, int32_t(const VideoCodec* codecSettings, |
33 int32_t numberOfCores, | 33 int32_t numberOfCores, |
34 size_t maxPayloadSize)); | 34 size_t maxPayloadSize)); |
35 MOCK_METHOD3(Encode, | 35 MOCK_METHOD3(Encode, |
36 int32_t(const VideoFrame& inputImage, | 36 int32_t(const VideoFrame& inputImage, |
37 const CodecSpecificInfo* codecSpecificInfo, | 37 const CodecSpecificInfo* codecSpecificInfo, |
38 const std::vector<VideoFrameType>* frame_types)); | 38 const std::vector<FrameType>* frame_types)); |
39 MOCK_METHOD1(RegisterEncodeCompleteCallback, | 39 MOCK_METHOD1(RegisterEncodeCompleteCallback, |
40 int32_t(EncodedImageCallback* callback)); | 40 int32_t(EncodedImageCallback* callback)); |
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 MOCK_METHOD2(CodecConfigParameters, | 46 MOCK_METHOD2(CodecConfigParameters, |
47 int32_t(uint8_t* /*buffer*/, int32_t)); | 47 int32_t(uint8_t* /*buffer*/, int32_t)); |
48 }; | 48 }; |
(...skipping 21 matching lines...) Expand all Loading... |
70 MOCK_METHOD0(Release, int32_t()); | 70 MOCK_METHOD0(Release, int32_t()); |
71 MOCK_METHOD0(Reset, int32_t()); | 71 MOCK_METHOD0(Reset, int32_t()); |
72 MOCK_METHOD2(SetCodecConfigParameters, | 72 MOCK_METHOD2(SetCodecConfigParameters, |
73 int32_t(const uint8_t* /*buffer*/, int32_t)); | 73 int32_t(const uint8_t* /*buffer*/, int32_t)); |
74 MOCK_METHOD0(Copy, VideoDecoder*()); | 74 MOCK_METHOD0(Copy, VideoDecoder*()); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace webrtc | 77 } // namespace webrtc |
78 | 78 |
79 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_IN
TERFACE_H_ | 79 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_IN
TERFACE_H_ |
OLD | NEW |