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/mock_video_capture_device_impl.h" | 5 #include "services/video_capture/mock_media_device_impl.h" |
6 | 6 |
7 namespace video_capture { | 7 namespace video_capture { |
8 | 8 |
9 MockVideoCaptureDeviceImpl::MockVideoCaptureDeviceImpl( | 9 MockMediaDeviceImpl::MockMediaDeviceImpl(mojom::MockMediaDeviceRequest request) |
10 mojom::MockVideoCaptureDeviceRequest request) | |
11 : binding_(this, std::move(request)) {} | 10 : binding_(this, std::move(request)) {} |
12 | 11 |
13 MockVideoCaptureDeviceImpl::~MockVideoCaptureDeviceImpl() = default; | 12 MockMediaDeviceImpl::~MockMediaDeviceImpl() = default; |
14 | 13 |
15 void MockVideoCaptureDeviceImpl::AllocateAndStart( | 14 void MockMediaDeviceImpl::AllocateAndStart(mojom::MockDeviceClientPtr client) { |
16 mojom::MockDeviceClientPtr client) { | |
17 AllocateAndStartPtr(&client); | 15 AllocateAndStartPtr(&client); |
18 } | 16 } |
19 | 17 |
20 } // namespace video_capture | 18 } // namespace video_capture |
OLD | NEW |