| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/audio_modem/audio_recorder.h" | 5 #include "components/audio_modem/audio_recorder.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/aligned_memory.h" | 14 #include "base/memory/aligned_memory.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 #include "components/audio_modem/audio_recorder_impl.h" | 18 #include "components/audio_modem/audio_recorder_impl.h" |
| 19 #include "components/audio_modem/public/audio_modem_types.h" | 19 #include "components/audio_modem/public/audio_modem_types.h" |
| 20 #include "components/audio_modem/test/random_samples.h" | 20 #include "components/audio_modem/test/random_samples.h" |
| 21 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
| 22 #include "media/audio/audio_device_description.h" | 22 #include "media/audio/audio_device_description.h" |
| 23 #include "media/audio/audio_manager.h" | 23 #include "media/audio/audio_manager.h" |
| 24 #include "media/base/audio_bus.h" | 24 #include "media/base/audio_bus.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 CreateRecorder(kNumSamples); | 273 CreateRecorder(kNumSamples); |
| 274 | 274 |
| 275 RecordAndVerifySamples(); | 275 RecordAndVerifySamples(); |
| 276 | 276 |
| 277 DeleteRecorder(); | 277 DeleteRecorder(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 // TODO(rkc): Add tests with recording different sample rates. | 280 // TODO(rkc): Add tests with recording different sample rates. |
| 281 | 281 |
| 282 } // namespace audio_modem | 282 } // namespace audio_modem |
| OLD | NEW |