In common_audio/ and modules/audio_* replace mock macros with unified MOCK_METHOD macro

Bug: webrtc:11564
Change-Id: Ib0ffce4de50a13b018926f6ea2865a2ec2fb2ec7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175621
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31333}
This commit is contained in:
Danil Chapovalov
2020-05-18 15:10:15 +02:00
committed by Commit Bot
parent b46df3da44
commit 704fb55255
31 changed files with 511 additions and 396 deletions

View File

@ -31,13 +31,14 @@ using ::testing::StrictMock;
namespace {
class MockEncodedAudioFrame : public webrtc::AudioDecoder::EncodedAudioFrame {
public:
MOCK_CONST_METHOD0(Duration, size_t());
MOCK_METHOD(size_t, Duration, (), (const, override));
MOCK_CONST_METHOD0(IsDtxPacket, bool());
MOCK_METHOD(bool, IsDtxPacket, (), (const, override));
MOCK_CONST_METHOD1(
Decode,
absl::optional<DecodeResult>(rtc::ArrayView<int16_t> decoded));
MOCK_METHOD(absl::optional<DecodeResult>,
Decode,
(rtc::ArrayView<int16_t> decoded),
(const, override));
};
// Helper class to generate packets. Packets must be deleted by the user.