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_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_INTER
FACE_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_INTER
FACE_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_INTER
FACE_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_INTER
FACE_H_ |
13 | 13 |
14 #pragma message("WARNING: video_coding/codecs/interface is DEPRECATED; " | 14 #pragma message("WARNING: video_coding/codecs/interface is DEPRECATED; " |
15 "use video_coding/include") | 15 "use video_coding/include") |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
| 19 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
19 #include "webrtc/test/gmock.h" | 20 #include "webrtc/test/gmock.h" |
20 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | |
21 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 class MockEncodedImageCallback : public EncodedImageCallback { | 25 class MockEncodedImageCallback : public EncodedImageCallback { |
26 public: | 26 public: |
27 MOCK_METHOD3(Encoded, | 27 MOCK_METHOD3(Encoded, |
28 int32_t(const EncodedImage& encodedImage, | 28 int32_t(const EncodedImage& encodedImage, |
29 const CodecSpecificInfo* codecSpecificInfo, | 29 const CodecSpecificInfo* codecSpecificInfo, |
30 const RTPFragmentationHeader* fragmentation)); | 30 const RTPFragmentationHeader* fragmentation)); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 int64_t renderTimeMs)); | 72 int64_t renderTimeMs)); |
73 MOCK_METHOD1(RegisterDecodeCompleteCallback, | 73 MOCK_METHOD1(RegisterDecodeCompleteCallback, |
74 int32_t(DecodedImageCallback* callback)); | 74 int32_t(DecodedImageCallback* callback)); |
75 MOCK_METHOD0(Release, int32_t()); | 75 MOCK_METHOD0(Release, int32_t()); |
76 MOCK_METHOD0(Copy, VideoDecoder*()); | 76 MOCK_METHOD0(Copy, VideoDecoder*()); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace webrtc | 79 } // namespace webrtc |
80 | 80 |
81 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_IN
TERFACE_H_ | 81 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_MOCK_MOCK_VIDEO_CODEC_IN
TERFACE_H_ |
OLD | NEW |