| 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> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/aligned_memory.h" | 13 #include "base/memory/aligned_memory.h" |
| 11 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "build/build_config.h" |
| 12 #include "components/audio_modem/audio_recorder_impl.h" | 16 #include "components/audio_modem/audio_recorder_impl.h" |
| 13 #include "components/audio_modem/public/audio_modem_types.h" | 17 #include "components/audio_modem/public/audio_modem_types.h" |
| 14 #include "components/audio_modem/test/random_samples.h" | 18 #include "components/audio_modem/test/random_samples.h" |
| 15 #include "content/public/test/test_browser_thread_bundle.h" | 19 #include "content/public/test/test_browser_thread_bundle.h" |
| 16 #include "media/audio/audio_manager.h" | 20 #include "media/audio/audio_manager.h" |
| 17 #include "media/audio/audio_manager_base.h" | 21 #include "media/audio/audio_manager_base.h" |
| 18 #include "media/base/audio_bus.h" | 22 #include "media/base/audio_bus.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 24 |
| 21 namespace { | 25 namespace { |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 CreateRecorder(kNumSamples); | 262 CreateRecorder(kNumSamples); |
| 259 | 263 |
| 260 RecordAndVerifySamples(); | 264 RecordAndVerifySamples(); |
| 261 | 265 |
| 262 DeleteRecorder(); | 266 DeleteRecorder(); |
| 263 } | 267 } |
| 264 | 268 |
| 265 // TODO(rkc): Add tests with recording different sample rates. | 269 // TODO(rkc): Add tests with recording different sample rates. |
| 266 | 270 |
| 267 } // namespace audio_modem | 271 } // namespace audio_modem |
| OLD | NEW |