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.h" | 11 #include "webrtc/modules/audio_processing/test/conversational_speech/mock_wavrea
der.h" |
12 | 12 |
13 namespace webrtc { | 13 namespace webrtc { |
14 namespace test { | 14 namespace test { |
15 namespace conversational_speech { | 15 namespace conversational_speech { |
16 | 16 |
17 using testing::Return; | 17 using testing::Return; |
18 | 18 |
19 MockWavReader::MockWavReader( | 19 MockWavReader::MockWavReader( |
20 int sample_rate, size_t num_channels, size_t num_samples) | 20 int sample_rate, size_t num_channels, size_t num_samples) |
21 : sample_rate_(sample_rate), num_channels_(num_channels), | 21 : sample_rate_(sample_rate), num_channels_(num_channels), |
22 num_samples_(num_samples) { | 22 num_samples_(num_samples) { |
23 ON_CALL(*this, sample_rate()).WillByDefault(Return(sample_rate_)); | 23 ON_CALL(*this, SampleRate()).WillByDefault(Return(sample_rate_)); |
24 ON_CALL(*this, num_channels()).WillByDefault(Return(num_channels_)); | 24 ON_CALL(*this, NumChannels()).WillByDefault(Return(num_channels_)); |
25 ON_CALL(*this, num_samples()).WillByDefault(Return(num_samples_)); | 25 ON_CALL(*this, NumSamples()).WillByDefault(Return(num_samples_)); |
26 } | 26 } |
27 | 27 |
28 MockWavReader::~MockWavReader() = default; | 28 MockWavReader::~MockWavReader() = default; |
29 | 29 |
30 } // namespace conversational_speech | 30 } // namespace conversational_speech |
31 } // namespace test | 31 } // namespace test |
32 } // namespace webrtc | 32 } // namespace webrtc |
OLD | NEW |