| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 <stddef.h> // size_t | 11 #include <stddef.h> // size_t |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/test/gtest.h" | |
| 18 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" | 17 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" |
| 19 #include "webrtc/modules/audio_processing/test/debug_dump_replayer.h" | 18 #include "webrtc/modules/audio_processing/test/debug_dump_replayer.h" |
| 20 #include "webrtc/modules/audio_processing/test/test_utils.h" | 19 #include "webrtc/modules/audio_processing/test/test_utils.h" |
| 20 #include "webrtc/test/gtest.h" |
| 21 #include "webrtc/test/testsupport/fileutils.h" | 21 #include "webrtc/test/testsupport/fileutils.h" |
| 22 | 22 |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 namespace test { | 25 namespace test { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 void MaybeResetBuffer(std::unique_ptr<ChannelBuffer<float>>* buffer, | 29 void MaybeResetBuffer(std::unique_ptr<ChannelBuffer<float>>* buffer, |
| 30 const StreamConfig& config) { | 30 const StreamConfig& config) { |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 config.Set<ExperimentalNs>(new ExperimentalNs(true)); | 555 config.Set<ExperimentalNs>(new ExperimentalNs(true)); |
| 556 DebugDumpGenerator generator(config, AudioProcessing::Config()); | 556 DebugDumpGenerator generator(config, AudioProcessing::Config()); |
| 557 generator.StartRecording(); | 557 generator.StartRecording(); |
| 558 generator.Process(100); | 558 generator.Process(100); |
| 559 generator.StopRecording(); | 559 generator.StopRecording(); |
| 560 VerifyDebugDump(generator.dump_file_name()); | 560 VerifyDebugDump(generator.dump_file_name()); |
| 561 } | 561 } |
| 562 | 562 |
| 563 } // namespace test | 563 } // namespace test |
| 564 } // namespace webrtc | 564 } // namespace webrtc |
| OLD | NEW |