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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/environment.h" | 12 #include "base/environment.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/message_loop/message_loop.h" |
15 #include "base/path_service.h" | 16 #include "base/path_service.h" |
16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
17 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
18 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
19 #include "base/test/test_timeouts.h" | 20 #include "base/test/test_timeouts.h" |
20 #include "base/threading/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
21 #include "base/time/time.h" | 22 #include "base/time/time.h" |
22 #include "build/build_config.h" | 23 #include "build/build_config.h" |
23 #include "media/audio/audio_device_description.h" | 24 #include "media/audio/audio_device_description.h" |
24 #include "media/audio/audio_device_info_accessor_for_tests.h" | 25 #include "media/audio/audio_device_info_accessor_for_tests.h" |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 // should be synchronous and not post additional close tasks to | 451 // should be synchronous and not post additional close tasks to |
451 // mocked the audio thread. Hence, there is no need to call | 452 // mocked the audio thread. Hence, there is no need to call |
452 // message_loop()->RunUntilIdle() after the Close() methods. | 453 // message_loop()->RunUntilIdle() after the Close() methods. |
453 aos->Close(); | 454 aos->Close(); |
454 ais->Close(); | 455 ais->Close(); |
455 } | 456 } |
456 | 457 |
457 } // namespace | 458 } // namespace |
458 | 459 |
459 } // namespace media | 460 } // namespace media |
OLD | NEW |