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 <list> | 5 #include <list> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "media/audio/audio_io.h" | 13 #include "media/audio/audio_io.h" |
14 #include "media/audio/simple_sources.h" | 14 #include "media/audio/simple_sources.h" |
15 #include "media/audio/virtual_audio_input_stream.h" | 15 #include "media/audio/virtual_audio_input_stream.h" |
16 #include "media/audio/virtual_audio_output_stream.h" | 16 #include "media/audio/virtual_audio_output_stream.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 } | 349 } |
350 RUN_ON_AUDIO_THREAD(Close); | 350 RUN_ON_AUDIO_THREAD(Close); |
351 WaitUntilClosed(); | 351 WaitUntilClosed(); |
352 } | 352 } |
353 | 353 |
354 INSTANTIATE_TEST_CASE_P(SingleVersusMultithreaded, | 354 INSTANTIATE_TEST_CASE_P(SingleVersusMultithreaded, |
355 VirtualAudioInputStreamTest, | 355 VirtualAudioInputStreamTest, |
356 ::testing::Values(false, true)); | 356 ::testing::Values(false, true)); |
357 | 357 |
358 } // namespace media | 358 } // namespace media |
OLD | NEW |