1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/video_capture/public/cpp/mock_video_source.h"
6
7 namespace video_capture {
8
9 MockVideoSource::MockVideoSource() = default;
10
11 MockVideoSource::~MockVideoSource() = default;
12
CreatePushSubscription(mojo::PendingRemote<video_capture::mojom::VideoFrameHandler> subscriber,const media::VideoCaptureParams & requested_settings,bool force_reopen_with_new_settings,mojo::PendingReceiver<video_capture::mojom::PushVideoStreamSubscription> subscription,CreatePushSubscriptionCallback callback)13 void MockVideoSource::CreatePushSubscription(
14 mojo::PendingRemote<video_capture::mojom::VideoFrameHandler> subscriber,
15 const media::VideoCaptureParams& requested_settings,
16 bool force_reopen_with_new_settings,
17 mojo::PendingReceiver<video_capture::mojom::PushVideoStreamSubscription>
18 subscription,
19 CreatePushSubscriptionCallback callback) {
20 DoCreatePushSubscription(std::move(subscriber), requested_settings,
21 force_reopen_with_new_settings,
22 std::move(subscription), callback);
23 }
24
25 } // namespace video_capture
26