OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "media/audio/audio_manager.h" | 5 #include "media/audio/audio_manager.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/environment.h" | 11 #include "base/environment.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
16 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
17 #include "base/test/test_message_loop.h" | 18 #include "base/test/test_message_loop.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "media/audio/audio_device_description.h" | 21 #include "media/audio/audio_device_description.h" |
21 #include "media/audio/audio_device_info_accessor_for_tests.h" | 22 #include "media/audio/audio_device_info_accessor_for_tests.h" |
22 #include "media/audio/audio_device_name.h" | 23 #include "media/audio/audio_device_name.h" |
23 #include "media/audio/audio_output_proxy.h" | 24 #include "media/audio/audio_output_proxy.h" |
24 #include "media/audio/audio_unittest_util.h" | 25 #include "media/audio/audio_unittest_util.h" |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 | 675 |
675 base::FilePath file_path(FILE_PATH_LITERAL("path")); | 676 base::FilePath file_path(FILE_PATH_LITERAL("path")); |
676 EXPECT_CALL(*mock_debug_recording_manager, EnableDebugRecording(file_path)); | 677 EXPECT_CALL(*mock_debug_recording_manager, EnableDebugRecording(file_path)); |
677 audio_manager_->EnableOutputDebugRecording(file_path); | 678 audio_manager_->EnableOutputDebugRecording(file_path); |
678 | 679 |
679 EXPECT_CALL(*mock_debug_recording_manager, DisableDebugRecording()); | 680 EXPECT_CALL(*mock_debug_recording_manager, DisableDebugRecording()); |
680 audio_manager_->DisableOutputDebugRecording(); | 681 audio_manager_->DisableOutputDebugRecording(); |
681 } | 682 } |
682 | 683 |
683 } // namespace media | 684 } // namespace media |
OLD | NEW |