| 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 |
| 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H_ |
| 12 #define WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
| 19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 class MockEncodedImageCallback : public EncodedImageCallback { | 23 class MockEncodedImageCallback : public EncodedImageCallback { |
| 24 public: | 24 public: |
| 25 MOCK_METHOD3(OnEncodedImage, | 25 MOCK_METHOD3(Encoded, |
| 26 Result(const EncodedImage& encodedImage, | 26 int32_t(const EncodedImage& encodedImage, |
| 27 const CodecSpecificInfo* codecSpecificInfo, | 27 const CodecSpecificInfo* codecSpecificInfo, |
| 28 const RTPFragmentationHeader* fragmentation)); | 28 const RTPFragmentationHeader* fragmentation)); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 class MockVideoEncoder : public VideoEncoder { | 31 class MockVideoEncoder : public VideoEncoder { |
| 32 public: | 32 public: |
| 33 MOCK_CONST_METHOD2(Version, int32_t(int8_t* version, int32_t length)); | 33 MOCK_CONST_METHOD2(Version, int32_t(int8_t* version, int32_t length)); |
| 34 MOCK_METHOD3(InitEncode, | 34 MOCK_METHOD3(InitEncode, |
| 35 int32_t(const VideoCodec* codecSettings, | 35 int32_t(const VideoCodec* codecSettings, |
| 36 int32_t numberOfCores, | 36 int32_t numberOfCores, |
| 37 size_t maxPayloadSize)); | 37 size_t maxPayloadSize)); |
| 38 MOCK_METHOD3(Encode, | 38 MOCK_METHOD3(Encode, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 int64_t renderTimeMs)); | 71 int64_t renderTimeMs)); |
| 72 MOCK_METHOD1(RegisterDecodeCompleteCallback, | 72 MOCK_METHOD1(RegisterDecodeCompleteCallback, |
| 73 int32_t(DecodedImageCallback* callback)); | 73 int32_t(DecodedImageCallback* callback)); |
| 74 MOCK_METHOD0(Release, int32_t()); | 74 MOCK_METHOD0(Release, int32_t()); |
| 75 MOCK_METHOD0(Copy, VideoDecoder*()); | 75 MOCK_METHOD0(Copy, VideoDecoder*()); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace webrtc | 78 } // namespace webrtc |
| 79 | 79 |
| 80 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H
_ | 80 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H
_ |
| OLD | NEW |