Index: webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.h |
diff --git a/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.h b/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.h |
index 833a347353e13c515fb58aa6219a5b5579c07ee8..b3e5783221e3ee706987db56ffc144017565ffb7 100644 |
--- a/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.h |
+++ b/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.h |
@@ -14,6 +14,7 @@ |
#include <cstddef> |
#include <string> |
+#include "webrtc/base/array_view.h" |
#include "webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h" |
#include "webrtc/test/gmock.h" |
#include "webrtc/typedefs.h" |
@@ -28,8 +29,8 @@ class MockWavReader : public WavReaderInterface { |
~MockWavReader(); |
// TOOD(alessiob): use ON_CALL to return random samples. |
- MOCK_METHOD2(ReadFloatSamples, size_t(size_t, float*)); |
- MOCK_METHOD2(ReadInt16Samples, size_t(size_t, int16_t*)); |
+ MOCK_METHOD1(ReadFloatSamples, size_t(rtc::ArrayView<float>)); |
+ MOCK_METHOD1(ReadInt16Samples, size_t(rtc::ArrayView<int16_t>)); |
MOCK_CONST_METHOD0(sample_rate, int()); |
MOCK_CONST_METHOD0(num_channels, size_t()); |