webrtc_m130/test/testsupport/mock/mock_frame_reader.h
Mirko Bonadei a8829eb5f3 macro cleanup: "(const override)" -> "(const, override)"
Bug: None
Change-Id: Iffd5db39b1a5ae70b403193b40054df04cf5600b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/362800
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43065}
2024-09-22 18:30:29 +00:00

41 lines
1.3 KiB
C++

/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef TEST_TESTSUPPORT_MOCK_MOCK_FRAME_READER_H_
#define TEST_TESTSUPPORT_MOCK_MOCK_FRAME_READER_H_
#include "api/video/i420_buffer.h"
#include "test/gmock.h"
#include "test/testsupport/frame_reader.h"
namespace webrtc {
namespace test {
class MockFrameReader : public FrameReader {
public:
MOCK_METHOD(rtc::scoped_refptr<I420Buffer>, PullFrame, (), (override));
MOCK_METHOD(rtc::scoped_refptr<I420Buffer>, PullFrame, (int*), (override));
MOCK_METHOD(rtc::scoped_refptr<I420Buffer>,
PullFrame,
(int*, Resolution, Ratio),
(override));
MOCK_METHOD(rtc::scoped_refptr<I420Buffer>, ReadFrame, (int), (override));
MOCK_METHOD(rtc::scoped_refptr<I420Buffer>,
ReadFrame,
(int, Resolution),
(override));
MOCK_METHOD(int, num_frames, (), (const, override));
};
} // namespace test
} // namespace webrtc
#endif // TEST_TESTSUPPORT_MOCK_MOCK_FRAME_READER_H_