In modules/ replace mock macros with unified MOCK_METHOD macro
Bug: webrtc:11564 Change-Id: I8a87389a795029feb818449ab1e5bbe69486db28 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175908 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31364}
This commit is contained in:

committed by
Commit Bot

parent
e309651f33
commit
014197b581
@ -55,15 +55,17 @@ using ::webrtc::test::RtcpPacketParser;
|
||||
|
||||
class MockReceiveStatisticsProvider : public webrtc::ReceiveStatisticsProvider {
|
||||
public:
|
||||
MOCK_METHOD1(RtcpReportBlocks, std::vector<ReportBlock>(size_t));
|
||||
MOCK_METHOD(std::vector<ReportBlock>, RtcpReportBlocks, (size_t), (override));
|
||||
};
|
||||
|
||||
class MockMediaReceiverRtcpObserver : public webrtc::MediaReceiverRtcpObserver {
|
||||
public:
|
||||
MOCK_METHOD3(OnSenderReport, void(uint32_t, NtpTime, uint32_t));
|
||||
MOCK_METHOD1(OnBye, void(uint32_t));
|
||||
MOCK_METHOD2(OnBitrateAllocation,
|
||||
void(uint32_t, const VideoBitrateAllocation&));
|
||||
MOCK_METHOD(void, OnSenderReport, (uint32_t, NtpTime, uint32_t), (override));
|
||||
MOCK_METHOD(void, OnBye, (uint32_t), (override));
|
||||
MOCK_METHOD(void,
|
||||
OnBitrateAllocation,
|
||||
(uint32_t, const VideoBitrateAllocation&),
|
||||
(override));
|
||||
};
|
||||
|
||||
// Since some tests will need to wait for this period, make it small to avoid
|
||||
|
Reference in New Issue
Block a user