xref: /aosp_15_r20/external/webrtc/api/video/test/mock_recordable_encoded_frame.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1 /*
2  *  Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef API_VIDEO_TEST_MOCK_RECORDABLE_ENCODED_FRAME_H_
12 #define API_VIDEO_TEST_MOCK_RECORDABLE_ENCODED_FRAME_H_
13 
14 #include "api/video/recordable_encoded_frame.h"
15 #include "test/gmock.h"
16 
17 namespace webrtc {
18 class MockRecordableEncodedFrame : public RecordableEncodedFrame {
19  public:
20   MOCK_METHOD(rtc::scoped_refptr<const EncodedImageBufferInterface>,
21               encoded_buffer,
22               (),
23               (const, override));
24   MOCK_METHOD(absl::optional<webrtc::ColorSpace>,
25               color_space,
26               (),
27               (const, override));
28   MOCK_METHOD(VideoCodecType, codec, (), (const, override));
29   MOCK_METHOD(bool, is_key_frame, (), (const, override));
30   MOCK_METHOD(EncodedResolution, resolution, (), (const, override));
31   MOCK_METHOD(Timestamp, render_time, (), (const, override));
32 };
33 }  // namespace webrtc
34 #endif  // API_VIDEO_TEST_MOCK_RECORDABLE_ENCODED_FRAME_H_
35