| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 uint32_t frameRate)); | 50 uint32_t frameRate)); |
| 51 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable)); | 51 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable)); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 class MockDecodedImageCallback : public DecodedImageCallback { | 54 class MockDecodedImageCallback : public DecodedImageCallback { |
| 55 public: | 55 public: |
| 56 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); // NOLINT | 56 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); // NOLINT |
| 57 MOCK_METHOD2(Decoded, | 57 MOCK_METHOD2(Decoded, |
| 58 int32_t(VideoFrame& decodedImage, // NOLINT | 58 int32_t(VideoFrame& decodedImage, // NOLINT |
| 59 int64_t decode_time_ms)); | 59 int64_t decode_time_ms)); |
| 60 MOCK_METHOD2(DecodedWithQp, |
| 61 int32_t(VideoFrame& decodedImage, // NOLINT |
| 62 int qp)); |
| 63 MOCK_METHOD3(DecodedWithQp, |
| 64 int32_t(VideoFrame& decodedImage, // NOLINT |
| 65 int64_t decode_time_ms, |
| 66 int qp)); |
| 60 MOCK_METHOD1(ReceivedDecodedReferenceFrame, | 67 MOCK_METHOD1(ReceivedDecodedReferenceFrame, |
| 61 int32_t(const uint64_t pictureId)); | 68 int32_t(const uint64_t pictureId)); |
| 62 MOCK_METHOD1(ReceivedDecodedFrame, int32_t(const uint64_t pictureId)); | 69 MOCK_METHOD1(ReceivedDecodedFrame, int32_t(const uint64_t pictureId)); |
| 63 }; | 70 }; |
| 64 | 71 |
| 65 class MockVideoDecoder : public VideoDecoder { | 72 class MockVideoDecoder : public VideoDecoder { |
| 66 public: | 73 public: |
| 67 MOCK_METHOD2(InitDecode, | 74 MOCK_METHOD2(InitDecode, |
| 68 int32_t(const VideoCodec* codecSettings, int32_t numberOfCores)); | 75 int32_t(const VideoCodec* codecSettings, int32_t numberOfCores)); |
| 69 MOCK_METHOD5(Decode, | 76 MOCK_METHOD5(Decode, |
| 70 int32_t(const EncodedImage& inputImage, | 77 int32_t(const EncodedImage& inputImage, |
| 71 bool missingFrames, | 78 bool missingFrames, |
| 72 const RTPFragmentationHeader* fragmentation, | 79 const RTPFragmentationHeader* fragmentation, |
| 73 const CodecSpecificInfo* codecSpecificInfo, | 80 const CodecSpecificInfo* codecSpecificInfo, |
| 74 int64_t renderTimeMs)); | 81 int64_t renderTimeMs)); |
| 75 MOCK_METHOD1(RegisterDecodeCompleteCallback, | 82 MOCK_METHOD1(RegisterDecodeCompleteCallback, |
| 76 int32_t(DecodedImageCallback* callback)); | 83 int32_t(DecodedImageCallback* callback)); |
| 77 MOCK_METHOD0(Release, int32_t()); | 84 MOCK_METHOD0(Release, int32_t()); |
| 78 MOCK_METHOD0(Copy, VideoDecoder*()); | 85 MOCK_METHOD0(Copy, VideoDecoder*()); |
| 79 }; | 86 }; |
| 80 | 87 |
| 81 } // namespace webrtc | 88 } // namespace webrtc |
| 82 | 89 |
| 83 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H
_ | 90 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H
_ |
| OLD | NEW |