| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> |
| 6 |
| 5 #include <list> | 7 #include <list> |
| 6 | 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 10 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 11 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 12 #include "media/audio/audio_io.h" | 15 #include "media/audio/audio_io.h" |
| 13 #include "media/audio/simple_sources.h" | 16 #include "media/audio/simple_sources.h" |
| 14 #include "media/audio/virtual_audio_input_stream.h" | 17 #include "media/audio/virtual_audio_input_stream.h" |
| 15 #include "media/audio/virtual_audio_output_stream.h" | 18 #include "media/audio/virtual_audio_output_stream.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 21 |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 } | 342 } |
| 340 RUN_ON_AUDIO_THREAD(Close); | 343 RUN_ON_AUDIO_THREAD(Close); |
| 341 WaitUntilClosed(); | 344 WaitUntilClosed(); |
| 342 } | 345 } |
| 343 | 346 |
| 344 INSTANTIATE_TEST_CASE_P(SingleVersusMultithreaded, | 347 INSTANTIATE_TEST_CASE_P(SingleVersusMultithreaded, |
| 345 VirtualAudioInputStreamTest, | 348 VirtualAudioInputStreamTest, |
| 346 ::testing::Values(false, true)); | 349 ::testing::Values(false, true)); |
| 347 | 350 |
| 348 } // namespace media | 351 } // namespace media |
| OLD | NEW |