Marina Ciocea | 1148fd5 | 2020-04-29 20:39:13 | [diff] [blame] | 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 | |
Tony Herre | 9c687460 | 2024-01-26 10:16:45 | [diff] [blame] | 11 | #ifndef API_TEST_MOCK_FRAME_TRANSFORMER_H_ |
| 12 | #define API_TEST_MOCK_FRAME_TRANSFORMER_H_ |
Marina Ciocea | 1148fd5 | 2020-04-29 20:39:13 | [diff] [blame] | 13 | |
| 14 | #include <memory> |
| 15 | #include <vector> |
| 16 | |
| 17 | #include "api/frame_transformer_interface.h" |
| 18 | #include "test/gmock.h" |
| 19 | |
| 20 | namespace webrtc { |
| 21 | |
| 22 | class MockFrameTransformer : public FrameTransformerInterface { |
| 23 | public: |
| 24 | MOCK_METHOD(void, |
Marina Ciocea | 1148fd5 | 2020-04-29 20:39:13 | [diff] [blame] | 25 | 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 Herre | 9c687460 | 2024-01-26 10:16:45 | [diff] [blame] | 45 | #endif // API_TEST_MOCK_FRAME_TRANSFORMER_H_ |