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 "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 5 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/callback_helpers.h" | 13 #include "base/callback_helpers.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
18 #include "base/system_monitor/system_monitor.h" | 18 #include "base/system_monitor/system_monitor.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "content/browser/browser_thread_impl.h" | 21 #include "content/browser/browser_thread_impl.h" |
22 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 22 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
23 #include "content/browser/renderer_host/media/media_stream_manager.h" | 23 #include "content/browser/renderer_host/media/media_stream_manager.h" |
24 #include "content/browser/renderer_host/media/media_stream_ui_proxy.h" | 24 #include "content/browser/renderer_host/media/media_stream_ui_proxy.h" |
25 #include "content/browser/renderer_host/media/video_capture_manager.h" | 25 #include "content/browser/renderer_host/media/video_capture_manager.h" |
26 #include "content/common/media/media_stream_messages.h" | 26 #include "content/common/media/media_stream_messages.h" |
27 #include "content/common/media/media_stream_options.h" | 27 #include "content/common/media/media_stream_options.h" |
28 #include "content/public/browser/media_device_id.h" | 28 #include "content/public/browser/media_device_id.h" |
29 #include "content/public/common/content_switches.h" | 29 #include "content/public/common/content_switches.h" |
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 | 954 |
955 TEST_F(MediaStreamDispatcherHostTest, DeviceChangeNotification) { | 955 TEST_F(MediaStreamDispatcherHostTest, DeviceChangeNotification) { |
956 SetupFakeUI(false); | 956 SetupFakeUI(false); |
957 // warm up the cache | 957 // warm up the cache |
958 EnumerateDevicesAndWaitForResult(kRenderId, kPageRequestId, | 958 EnumerateDevicesAndWaitForResult(kRenderId, kPageRequestId, |
959 MEDIA_DEVICE_VIDEO_CAPTURE); | 959 MEDIA_DEVICE_VIDEO_CAPTURE); |
960 SubscribeToDeviceChangeNotificationsAndWaitForNotification(kRenderId); | 960 SubscribeToDeviceChangeNotificationsAndWaitForNotification(kRenderId); |
961 } | 961 } |
962 | 962 |
963 }; // namespace content | 963 }; // namespace content |
OLD | NEW |