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 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 20 namespace webrtc { 21 22 class MockFrameTransformer : public FrameTransformerInterface { 23 public: 24 MOCK_METHOD(void, 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 45 #endif // TEST_MOCK_FRAME_TRANSFORMER_H_ 46