• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
19 namespace webrtc {
20 
21 class MockTransformableVideoFrame
22     : public webrtc::TransformableVideoFrameInterface {
23  public:
24   MOCK_METHOD(rtc::ArrayView<const uint8_t>, GetData, (), (const override));
25   MOCK_METHOD(void, SetData, (rtc::ArrayView<const uint8_t> data), (override));
26   MOCK_METHOD(uint32_t, GetTimestamp, (), (const override));
27   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_
39