Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: services/video_capture/test/mock_receiver.cc

Issue 2818513003: [Mojo Video Capture] Adapt video_capture service to refactored video capture stack (Closed)
Patch Set: Fix compile errors Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « services/video_capture/test/mock_receiver.h ('k') | services/video_capture/test/service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698