blob: 8f438bdf9e76499f2095ce48822969a7d6fc49ba [file] [log] [blame]
Marina Ciocea1148fd52020-04-29 20:39:131/*
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
Tony Herre9c6874602024-01-26 10:16:4511#ifndef API_TEST_MOCK_FRAME_TRANSFORMER_H_
12#define API_TEST_MOCK_FRAME_TRANSFORMER_H_
Marina Ciocea1148fd52020-04-29 20:39:1313
14#include <memory>
15#include <vector>
16
17#include "api/frame_transformer_interface.h"
18#include "test/gmock.h"
19
20namespace webrtc {
21
22class MockFrameTransformer : public FrameTransformerInterface {
23 public:
24 MOCK_METHOD(void,
Marina Ciocea1148fd52020-04-29 20:39:1325 Transform,
26 (std::unique_ptr<TransformableFrameInterface>),
27 (override));
28 MOCK_METHOD(void,
29 RegisterTransformedFrameCallback,
30 (rtc::scoped_refptr<TransformedFrameCallback>),
31 (override));
32 MOCK_METHOD(void,
33 RegisterTransformedFrameSinkCallback,
34 (rtc::scoped_refptr<TransformedFrameCallback>, uint32_t),
35 (override));
36 MOCK_METHOD(void, UnregisterTransformedFrameCallback, (), (override));
37 MOCK_METHOD(void,
38 UnregisterTransformedFrameSinkCallback,
39 (uint32_t),
40 (override));
41};
42
43} // namespace webrtc
44
Tony Herre9c6874602024-01-26 10:16:4545#endif // API_TEST_MOCK_FRAME_TRANSFORMER_H_