| 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> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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" |
| 30 #include "content/public/test/mock_resource_context.h" | 30 #include "content/public/test/mock_resource_context.h" |
| 31 #include "content/public/test/test_browser_context.h" | 31 #include "content/public/test/test_browser_context.h" |
| 32 #include "content/public/test/test_browser_thread_bundle.h" | 32 #include "content/public/test/test_browser_thread_bundle.h" |
| 33 #include "content/test/test_content_browser_client.h" | 33 #include "content/test/test_content_browser_client.h" |
| 34 #include "content/test/test_content_client.h" | 34 #include "content/test/test_content_client.h" |
| 35 #include "device/capture/video/fake_video_capture_device_factory.h" |
| 35 #include "ipc/ipc_message_macros.h" | 36 #include "ipc/ipc_message_macros.h" |
| 36 #include "media/audio/mock_audio_manager.h" | 37 #include "media/audio/mock_audio_manager.h" |
| 37 #include "media/base/media_switches.h" | 38 #include "media/base/media_switches.h" |
| 38 #include "media/capture/video/fake_video_capture_device_factory.h" | |
| 39 #include "net/url_request/url_request_context.h" | 39 #include "net/url_request/url_request_context.h" |
| 40 #include "testing/gmock/include/gmock/gmock.h" | 40 #include "testing/gmock/include/gmock/gmock.h" |
| 41 #include "testing/gtest/include/gtest/gtest.h" | 41 #include "testing/gtest/include/gtest/gtest.h" |
| 42 #include "url/gurl.h" | 42 #include "url/gurl.h" |
| 43 #include "url/origin.h" | 43 #include "url/origin.h" |
| 44 | 44 |
| 45 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
| 46 #include "chromeos/audio/cras_audio_handler.h" | 46 #include "chromeos/audio/cras_audio_handler.h" |
| 47 #endif | 47 #endif |
| 48 | 48 |
| (...skipping 905 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 |