| Index: content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
| diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
| index b030ae9ab5f78dd320704d0c3c51bef6a11ded25..e9a0060e490aa4d0b3daef61ab097aa8307ad25c 100644
|
| --- a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
| +++ b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
| @@ -32,10 +32,10 @@
|
| #include "content/public/test/test_browser_thread_bundle.h"
|
| #include "content/test/test_content_browser_client.h"
|
| #include "content/test/test_content_client.h"
|
| +#include "device/capture/video/fake_video_capture_device_factory.h"
|
| #include "ipc/ipc_message_macros.h"
|
| #include "media/audio/mock_audio_manager.h"
|
| #include "media/base/media_switches.h"
|
| -#include "media/capture/video/fake_video_capture_device_factory.h"
|
| #include "net/url_request/url_request_context.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -260,7 +260,7 @@ class MediaStreamDispatcherHostTest : public testing::Test {
|
| // Create our own MediaStreamManager.
|
| media_stream_manager_.reset(new MediaStreamManager(audio_manager_.get()));
|
| video_capture_device_factory_ =
|
| - static_cast<media::FakeVideoCaptureDeviceFactory*>(
|
| + static_cast<device::FakeVideoCaptureDeviceFactory*>(
|
| media_stream_manager_->video_capture_manager()
|
| ->video_capture_device_factory());
|
| DCHECK(video_capture_device_factory_);
|
| @@ -398,7 +398,7 @@ class MediaStreamDispatcherHostTest : public testing::Test {
|
| if (audio_it->unique_id == devices[i].device.id)
|
| return true;
|
| }
|
| - media::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| + device::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| physical_video_devices_.begin();
|
| for (; video_it != physical_video_devices_.end(); ++video_it) {
|
| if (video_it->device_id == devices[i].device.id)
|
| @@ -424,7 +424,7 @@ class MediaStreamDispatcherHostTest : public testing::Test {
|
| found_match = true;
|
| }
|
| }
|
| - media::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| + device::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| physical_video_devices_.begin();
|
| for (; video_it != physical_video_devices_.end(); ++video_it) {
|
| if (content::DoesMediaDeviceIDMatchHMAC(
|
| @@ -468,9 +468,9 @@ class MediaStreamDispatcherHostTest : public testing::Test {
|
| std::unique_ptr<ContentClient> content_client_;
|
| content::TestBrowserContext browser_context_;
|
| media::AudioDeviceNames physical_audio_devices_;
|
| - media::VideoCaptureDeviceDescriptors physical_video_devices_;
|
| + device::VideoCaptureDeviceDescriptors physical_video_devices_;
|
| url::Origin origin_;
|
| - media::FakeVideoCaptureDeviceFactory* video_capture_device_factory_;
|
| + device::FakeVideoCaptureDeviceFactory* video_capture_device_factory_;
|
| };
|
|
|
| TEST_F(MediaStreamDispatcherHostTest, GenerateStreamWithVideoOnly) {
|
| @@ -653,7 +653,7 @@ TEST_F(MediaStreamDispatcherHostTest, GenerateStreamsWithMandatorySourceId) {
|
| EXPECT_EQ(host_->audio_devices_[0].device.id, source_id);
|
| }
|
|
|
| - media::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| + device::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| physical_video_devices_.begin();
|
| for (; video_it != physical_video_devices_.end(); ++video_it) {
|
| std::string source_id = content::GetHMACForMediaDeviceID(
|
| @@ -691,7 +691,7 @@ TEST_F(MediaStreamDispatcherHostTest, GenerateStreamsWithOptionalSourceId) {
|
| EXPECT_EQ(host_->audio_devices_[0].device.id, source_id);
|
| }
|
|
|
| - media::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| + device::VideoCaptureDeviceDescriptors::const_iterator video_it =
|
| physical_video_devices_.begin();
|
| for (; video_it != physical_video_devices_.end(); ++video_it) {
|
| std::string source_id = content::GetHMACForMediaDeviceID(
|
|
|