OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/browser/renderer_host/media/audio_output_device_enumerator.h" | 5 #include "content/browser/renderer_host/media/audio_output_device_enumerator.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "content/public/test/test_browser_thread_bundle.h" | 17 #include "content/public/test/test_browser_thread_bundle.h" |
18 #include "media/audio/audio_device_description.h" | 18 #include "media/audio/audio_device_description.h" |
19 #include "media/audio/fake_audio_log_factory.h" | 19 #include "media/audio/fake_audio_log_factory.h" |
20 #include "media/audio/fake_audio_manager.h" | 20 #include "media/audio/fake_audio_manager.h" |
21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 using testing::_; | 24 using testing::_; |
25 | 25 |
26 namespace content { | 26 namespace content { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 AudioOutputDeviceEnumerator enumerator( | 198 AudioOutputDeviceEnumerator enumerator( |
199 audio_manager_.get(), | 199 audio_manager_.get(), |
200 AudioOutputDeviceEnumerator::CACHE_POLICY_NO_CACHING); | 200 AudioOutputDeviceEnumerator::CACHE_POLICY_NO_CACHING); |
201 enumerator.Enumerate( | 201 enumerator.Enumerate( |
202 base::Bind(&AudioOutputDeviceEnumeratorTest::EnumerateCountCallback, | 202 base::Bind(&AudioOutputDeviceEnumeratorTest::EnumerateCountCallback, |
203 base::Unretained(this), num_devices + 1, true)); | 203 base::Unretained(this), num_devices + 1, true)); |
204 run_loop_.Run(); | 204 run_loop_.Run(); |
205 } | 205 } |
206 | 206 |
207 } // namespace content | 207 } // namespace content |
OLD | NEW |