From 0277f2b4a71b83f279aebb963f054befd6cc6b1b Mon Sep 17 00:00:00 2001 From: Tony Herre Date: Thu, 16 Feb 2023 12:30:13 +0100 Subject: [PATCH] Add GetDirection method to MockTransformableVideoFrame Allow mocking of GetDirection in tests. Required for Chromium adoption of this mock: https://chromium-review.googlesource.com/c/chromium/src/+/4236916 Bug: chromium:1414370 Change-Id: I2e7443a1bf24966cfcfaeadf47c5b29375e84f99 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/293745 Reviewed-by: Harald Alvestrand Auto-Submit: Tony Herre Commit-Queue: Harald Alvestrand Cr-Commit-Position: refs/heads/main@{#39329} --- api/test/mock_transformable_video_frame.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/test/mock_transformable_video_frame.h b/api/test/mock_transformable_video_frame.h index d326b2f8a8..a848032dd3 100644 --- a/api/test/mock_transformable_video_frame.h +++ b/api/test/mock_transformable_video_frame.h @@ -36,6 +36,10 @@ class MockTransformableVideoFrame (const webrtc::VideoFrameMetadata&), (override)); MOCK_METHOD(uint8_t, GetPayloadType, (), (const, override)); + MOCK_METHOD(TransformableFrameInterface::Direction, + GetDirection, + (), + (const, override)); }; static_assert(!std::is_abstract_v, "");