blob: 617cda8a438022266234086b8257cc4b17f355f9 [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
11#ifndef TEST_MOCK_FRAME_TRANSFORMER_H_
12#define TEST_MOCK_FRAME_TRANSFORMER_H_
13
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
45#endif // TEST_MOCK_FRAME_TRANSFORMER_H_