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/wavreader_f actory.h" | 11 #include "webrtc/modules/audio_processing/test/conversational_speech/wavreader_f actory.h" |
| 12 | 12 |
| 13 #include "webrtc/modules/audio_processing/test/conversational_speech/wavreader_a daptor.h" | 13 #include "webrtc/modules/audio_processing/test/conversational_speech/wavreader_a daptor.h" |
| 14 | 14 |
| 15 namespace webrtc { | 15 namespace webrtc { |
| 16 namespace test { | 16 namespace test { |
| 17 namespace conversational_speech { | 17 namespace conversational_speech { |
| 18 | 18 |
| 19 WavReaderFactory::WavReaderFactory() = default; | 19 WavReaderFactory::WavReaderFactory() = default; |
| 20 | 20 |
| 21 WavReaderFactory::~WavReaderFactory() = default; | 21 WavReaderFactory::~WavReaderFactory() = default; |
| 22 | 22 |
| 23 std::unique_ptr<WavReaderInterface> WavReaderFactory::Create( | 23 std::unique_ptr<WavReaderInterface> WavReaderFactory::Create( |
| 24 const std::string& filepath) const { | 24 const std::string& filepath) const { |
| 25 return std::unique_ptr<WavReaderAdaptor>(new WavReaderAdaptor(filepath)); | 25 return CreateWavReaderAdaptor(filepath); |
| 26 } | 26 } |
|
kwiberg-webrtc
2017/03/29 09:08:28
Hmm. Can you eliminate either WavReaderFactory::Cr
AleBzk
2017/03/29 09:34:43
Right. I can move everything into the factory.
| |
| 27 | 27 |
| 28 } // namespace conversational_speech | 28 } // namespace conversational_speech |
| 29 } // namespace test | 29 } // namespace test |
| 30 } // namespace webrtc | 30 } // namespace webrtc |
| OLD | NEW |