mock_frame_transformer.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef TEST_MOCK_FRAME_TRANSFORMER_H_
  11. #define TEST_MOCK_FRAME_TRANSFORMER_H_
  12. #include <memory>
  13. #include <vector>
  14. #include "api/frame_transformer_interface.h"
  15. #include "test/gmock.h"
  16. namespace webrtc {
  17. class MockFrameTransformer : public FrameTransformerInterface {
  18. public:
  19. MOCK_METHOD(void,
  20. Transform,
  21. (std::unique_ptr<TransformableFrameInterface>),
  22. (override));
  23. MOCK_METHOD(void,
  24. RegisterTransformedFrameCallback,
  25. (rtc::scoped_refptr<TransformedFrameCallback>),
  26. (override));
  27. MOCK_METHOD(void,
  28. RegisterTransformedFrameSinkCallback,
  29. (rtc::scoped_refptr<TransformedFrameCallback>, uint32_t),
  30. (override));
  31. MOCK_METHOD(void, UnregisterTransformedFrameCallback, (), (override));
  32. MOCK_METHOD(void,
  33. UnregisterTransformedFrameSinkCallback,
  34. (uint32_t),
  35. (override));
  36. };
  37. } // namespace webrtc
  38. #endif // TEST_MOCK_FRAME_TRANSFORMER_H_