Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.cc

Issue 2781573002: Conversational Speech tool, MultiEndCall::CheckTiming() and tests (Closed)
Patch Set: missing include to get std::back_inserter working on win targets Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12
13 namespace webrtc { 13 namespace webrtc {
14 namespace test { 14 namespace test {
15 namespace conversational_speech { 15 namespace conversational_speech {
16 16
17 MockWavReaderFactory::MockWavReaderFactory() = default; 17 using testing::Return;
18 18
19 MockWavReaderFactory::~MockWavReaderFactory() = default; 19 MockWavReader::MockWavReader(
20 int sample_rate, size_t num_channels, size_t num_samples)
21 : sample_rate_(sample_rate), num_channels_(num_channels),
22 num_samples_(num_samples) {
23 ON_CALL(*this, sample_rate()).WillByDefault(Return(sample_rate_));
24 ON_CALL(*this, num_channels()).WillByDefault(Return(num_channels_));
25 ON_CALL(*this, num_samples()).WillByDefault(Return(num_samples_));
26 }
27
28 MockWavReader::~MockWavReader() = default;
20 29
21 } // namespace conversational_speech 30 } // namespace conversational_speech
22 } // namespace test 31 } // namespace test
23 } // namespace webrtc 32 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698