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_player.h" | 5 #include "components/audio_modem/audio_player.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "components/audio_modem/audio_player_impl.h" | 12 #include "components/audio_modem/audio_player_impl.h" |
12 #include "components/audio_modem/public/audio_modem_types.h" | 13 #include "components/audio_modem/public/audio_modem_types.h" |
13 #include "components/audio_modem/test/random_samples.h" | 14 #include "components/audio_modem/test/random_samples.h" |
14 #include "media/audio/audio_manager.h" | 15 #include "media/audio/audio_manager.h" |
15 #include "media/audio/audio_manager_base.h" | 16 #include "media/audio/audio_manager_base.h" |
16 #include "media/base/audio_bus.h" | 17 #include "media/base/audio_bus.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 205 |
205 PlayAndVerifySamples( | 206 PlayAndVerifySamples( |
206 CreateRandomAudioRefCounted(0x7331, 1, kNumSamples - 3123)); | 207 CreateRandomAudioRefCounted(0x7331, 1, kNumSamples - 3123)); |
207 | 208 |
208 PlayAndVerifySamples(CreateRandomAudioRefCounted(0xf00d, 1, kNumSamples * 2)); | 209 PlayAndVerifySamples(CreateRandomAudioRefCounted(0xf00d, 1, kNumSamples * 2)); |
209 | 210 |
210 DeletePlayer(); | 211 DeletePlayer(); |
211 } | 212 } |
212 | 213 |
213 } // namespace audio_modem | 214 } // namespace audio_modem |
OLD | NEW |