OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/video_capture/video_capture_service.h" | 5 #include "services/video_capture/video_capture_service.h" |
6 | 6 |
7 #include "services/video_capture/video_capture_device_factory_impl.h" | 7 #include "services/video_capture/video_capture_device_factory_impl.h" |
8 | 8 |
9 namespace { | 9 namespace { |
10 static const char kFakeDeviceDisplayName[] = "Fake Video Capture Device"; | 10 static const char kFakeDeviceDisplayName[] = "Fake Video Capture Device"; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 if (fake_device_factory_) | 52 if (fake_device_factory_) |
53 return; | 53 return; |
54 fake_device_factory_ = base::MakeUnique<VideoCaptureDeviceFactoryImpl>(); | 54 fake_device_factory_ = base::MakeUnique<VideoCaptureDeviceFactoryImpl>(); |
55 auto fake_device_descriptor = mojom::VideoCaptureDeviceDescriptor::New(); | 55 auto fake_device_descriptor = mojom::VideoCaptureDeviceDescriptor::New(); |
56 fake_device_descriptor->display_name = kFakeDeviceDisplayName; | 56 fake_device_descriptor->display_name = kFakeDeviceDisplayName; |
57 fake_device_descriptor->device_id = kFakeDeviceId; | 57 fake_device_descriptor->device_id = kFakeDeviceId; |
58 fake_device_descriptor->model_id = kFakeModelId; | 58 fake_device_descriptor->model_id = kFakeModelId; |
59 fake_device_descriptor->capture_api = mojom::VideoCaptureApi::UNKNOWN; | 59 fake_device_descriptor->capture_api = mojom::VideoCaptureApi::UNKNOWN; |
60 fake_device_descriptor->transport_type = | 60 fake_device_descriptor->transport_type = |
61 mojom::VideoCaptureTransportType::OTHER_TRANSPORT; | 61 mojom::VideoCaptureTransportType::OTHER_TRANSPORT; |
62 fake_device_factory_->AddDevice(std::move(fake_device_descriptor), | 62 fake_device_factory_->AddDevice( |
63 base::MakeUnique<VideoCaptureDeviceImpl>()); | 63 std::move(fake_device_descriptor), |
| 64 base::MakeUnique<VideoCaptureDeviceProxyImpl>()); |
64 } | 65 } |
65 | 66 |
66 } // namespace video_capture | 67 } // namespace video_capture |
OLD | NEW |