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/test/mock_receiver.h" | 5 #include "services/video_capture/test/mock_receiver.h" |
6 | 6 |
7 namespace video_capture { | 7 namespace video_capture { |
8 | 8 |
9 MockReceiver::MockReceiver(mojom::ReceiverRequest request) | 9 MockReceiver::MockReceiver(mojom::ReceiverRequest request) |
10 : binding_(this, std::move(request)) {} | 10 : binding_(this, std::move(request)) {} |
11 | 11 |
12 MockReceiver::~MockReceiver() = default; | 12 MockReceiver::~MockReceiver() = default; |
13 | 13 |
14 void MockReceiver::OnIncomingCapturedVideoFrame( | 14 void MockReceiver::OnNewBufferHandle( |
15 media::mojom::VideoFramePtr frame) { | 15 int32_t buffer_id, |
16 OnIncomingCapturedVideoFramePtr(&frame); | 16 mojo::ScopedSharedBufferHandle buffer_handle) { |
| 17 DoOnNewBufferHandle(buffer_id, &buffer_handle); |
| 18 } |
| 19 |
| 20 void MockReceiver::OnFrameReadyInBuffer( |
| 21 int32_t buffer_id, |
| 22 int32_t frame_feedback_id, |
| 23 mojom::ScopedAccessPermissionPtr access_permission, |
| 24 media::mojom::VideoFrameInfoPtr frame_info) { |
| 25 DoOnFrameReadyInBuffer(buffer_id, frame_feedback_id, &access_permission, |
| 26 &frame_info); |
17 } | 27 } |
18 | 28 |
19 } // namespace video_capture | 29 } // namespace video_capture |
OLD | NEW |