| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/test/test_message_loop.h" | 14 #include "base/test/test_message_loop.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "components/audio_modem/audio_player_impl.h" | 16 #include "components/audio_modem/audio_player_impl.h" |
| 17 #include "components/audio_modem/public/audio_modem_types.h" | 17 #include "components/audio_modem/public/audio_modem_types.h" |
| 18 #include "components/audio_modem/test/random_samples.h" | 18 #include "components/audio_modem/test/random_samples.h" |
| 19 #include "media/audio/audio_manager_base.h" | 19 #include "media/audio/audio_manager_base.h" |
| 20 #include "media/base/audio_bus.h" | 20 #include "media/base/audio_bus.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 class TestAudioOutputStream : public media::AudioOutputStream { | 25 class TestAudioOutputStream : public media::AudioOutputStream { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 PlayAndVerifySamples( | 216 PlayAndVerifySamples( |
| 217 CreateRandomAudioRefCounted(0x7331, 1, kNumSamples - 3123)); | 217 CreateRandomAudioRefCounted(0x7331, 1, kNumSamples - 3123)); |
| 218 | 218 |
| 219 PlayAndVerifySamples(CreateRandomAudioRefCounted(0xf00d, 1, kNumSamples * 2)); | 219 PlayAndVerifySamples(CreateRandomAudioRefCounted(0xf00d, 1, kNumSamples * 2)); |
| 220 | 220 |
| 221 DeletePlayer(); | 221 DeletePlayer(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace audio_modem | 224 } // namespace audio_modem |
| OLD | NEW |