blob: 5cebcaba80c5c2ba3551baa4fa43a77b94950995 [file] [log] [blame]
Marina Cioceabb13f382020-05-15 08:24:17 +02001/*
2 * Copyright (c) 2020 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_TEST_MOCK_TRANSFORMABLE_VIDEO_FRAME_H_
12#define API_TEST_MOCK_TRANSFORMABLE_VIDEO_FRAME_H_
13
14#include <vector>
15
16#include "api/frame_transformer_interface.h"
17#include "test/gmock.h"
18
19namespace webrtc {
20
21class MockTransformableVideoFrame
22 : public webrtc::TransformableVideoFrameInterface {
23 public:
Ali Tofighc98687a2022-01-25 14:06:33 +010024 MOCK_METHOD(rtc::ArrayView<const uint8_t>, GetData, (), (const, override));
Marina Cioceabb13f382020-05-15 08:24:17 +020025 MOCK_METHOD(void, SetData, (rtc::ArrayView<const uint8_t> data), (override));
Ali Tofighc98687a2022-01-25 14:06:33 +010026 MOCK_METHOD(uint32_t, GetTimestamp, (), (const, override));
Marina Cioceabb13f382020-05-15 08:24:17 +020027 MOCK_METHOD(uint32_t, GetSsrc, (), (const, override));
28 MOCK_METHOD(bool, IsKeyFrame, (), (const, override));
29 MOCK_METHOD(std::vector<uint8_t>, GetAdditionalData, (), (const, override));
30 MOCK_METHOD(const webrtc::VideoFrameMetadata&,
31 GetMetadata,
32 (),
33 (const, override));
34};
35
36} // namespace webrtc
37
38#endif // API_TEST_MOCK_TRANSFORMABLE_VIDEO_FRAME_H_