Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
|
hlundin-webrtc
2017/03/24 13:44:05
Can this file be folded into the h-file?
AleBzk
2017/03/27 08:24:13
Done.
| |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #include "webrtc/modules/audio_processing/test/conversational_speech/mock_wavrea der.h" | |
| 12 | |
| 13 #include <stdint.h> | |
|
hlundin-webrtc
2017/03/24 13:44:05
#include "webrtc/typedefs.h"
AleBzk
2017/03/27 08:24:13
Done.
| |
| 14 #include <cstddef> | |
| 15 #include <string> | |
| 16 | |
| 17 namespace webrtc { | |
| 18 namespace test { | |
| 19 namespace conversational_speech { | |
| 20 | |
| 21 MockWavReader::MockWavReader(const std::string& filepath) { | |
| 22 // TODO(alessiob): extract filename, parse to extract sample rate, number of | |
|
hlundin-webrtc
2017/03/24 13:44:05
Since this is a mock, I think you can add extra ct
AleBzk
2017/03/27 08:24:13
Right. I will delegate its factory (namely, MockWa
| |
| 23 // channels and number of samples (to be used for unit tests). | |
| 24 } | |
| 25 | |
| 26 MockWavReader::~MockWavReader() { | |
|
hlundin-webrtc
2017/03/24 13:44:05
= default
AleBzk
2017/03/27 08:24:13
Done.
| |
| 27 } | |
| 28 | |
| 29 } // namespace conversational_speech | |
| 30 } // namespace test | |
| 31 } // namespace webrtc | |
| OLD | NEW |