Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/modules/audio_processing/test/conversational_speech/mock_wavrea der_factory.h" | 11 #include "webrtc/modules/audio_processing/test/conversational_speech/mock_wavrea der.h" |
| 12 | |
| 13 #include "webrtc/test/gmock.h" | |
|
hlundin-webrtc
2017/04/06 08:10:03
No need for this; it is already present in the h-f
AleBzk
2017/04/06 16:42:41
Done.
| |
| 12 | 14 |
| 13 namespace webrtc { | 15 namespace webrtc { |
| 14 namespace test { | 16 namespace test { |
| 15 namespace conversational_speech { | 17 namespace conversational_speech { |
| 16 | 18 |
| 17 MockWavReaderFactory::MockWavReaderFactory() = default; | 19 using testing::Return; |
| 18 | 20 |
| 19 MockWavReaderFactory::~MockWavReaderFactory() = default; | 21 MockWavReader::MockWavReader( |
| 22 int sample_rate, size_t num_channels, size_t num_samples) | |
| 23 : sample_rate_(sample_rate), num_channels_(num_channels), | |
| 24 num_samples_(num_samples) { | |
| 25 ON_CALL(*this, sample_rate()).WillByDefault(Return(sample_rate_)); | |
| 26 ON_CALL(*this, num_channels()).WillByDefault(Return(num_channels_)); | |
| 27 ON_CALL(*this, num_samples()).WillByDefault(Return(num_samples_)); | |
| 28 } | |
| 29 | |
| 30 MockWavReader::~MockWavReader() = default; | |
| 20 | 31 |
| 21 } // namespace conversational_speech | 32 } // namespace conversational_speech |
| 22 } // namespace test | 33 } // namespace test |
| 23 } // namespace webrtc | 34 } // namespace webrtc |
| OLD | NEW |