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

Issue 2238083004: Video Capture Mojo (1.4b): Implement ability to use fake device instance (Closed)

Created:
4 years, 4 months ago by chfremer
Modified:
4 years, 3 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@FillServicePart1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Video Capture Mojo (1.4b): Implement ability to use fake device instance This CL is part of the Mojo Video Capture work. For the bigger picture, see [1]. This is a follow up to a CL [2] currently under review. * Add DEPS file to allow dependency on existing video capture (media/capture/video) and media Mojo (media/mojo) code. * Add adapter class DeviceClientMojoToMediaAdapter for being able to connect a Mojo-style VideoCaptureDeviceClient to a media::VideoCaptureDevice expecting a media::VideoCaptureDevice::Client. The class is not yet fully implemented. Only enough implementation is added to pass the current set of tests. * Added service test: + ErrorCodeOnCreateDeviceForInvalidDescriptor + FakeDeviceVideoCaptureServiceTest.FrameCallbacksArrive * Added implementation neccessary to make tests pass. BUG=584797 TEST=Build of video_capture_unittests succeeds. All video_capture_unittests pass. [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing [2] https://codereview.chromium.org/2244763002/ Committed: https://crrev.com/3cfa98dff3f78af0da0e2b8f22d0f77e6fde0c28 Cr-Commit-Position: refs/heads/master@{#416029}

Patch Set 1 #

Total comments: 19

Patch Set 2 : mcasas' comments #

Total comments: 13

Patch Set 3 : mcasas' comments #

Patch Set 4 : Fix missing dependency in Build.gn #

Patch Set 5 : Fix control reached end of non-void function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -123 lines) Patch
M services/video_capture/BUILD.gn View 1 2 3 4 chunks +15 lines, -1 line 0 comments Download
A services/video_capture/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
A services/video_capture/device_client_mojo_to_media_adapter.h View 1 1 chunk +65 lines, -0 lines 0 comments Download
A services/video_capture/device_client_mojo_to_media_adapter.cc View 1 1 chunk +84 lines, -0 lines 0 comments Download
A services/video_capture/fake_device_video_capture_service_test.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
A services/video_capture/fake_device_video_capture_service_test.cc View 1 1 chunk +44 lines, -0 lines 0 comments Download
A services/video_capture/fake_device_video_capture_service_unittest.cc View 1 1 chunk +45 lines, -0 lines 0 comments Download
A services/video_capture/mock_device_descriptor_receiver.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A services/video_capture/mock_device_descriptor_receiver.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
A services/video_capture/mock_video_capture_device_client.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A services/video_capture/mock_video_capture_device_client.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M services/video_capture/service_unittest.cc View 1 1 chunk +0 lines, -83 lines 0 comments Download
M services/video_capture/video_capture_device_factory_impl.h View 2 chunks +7 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_factory_impl.cc View 1 2 4 chunks +34 lines, -3 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.h View 1 2 chunks +22 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.cc View 1 2 3 4 1 chunk +80 lines, -1 line 0 comments Download
M services/video_capture/video_capture_service.cc View 2 chunks +6 lines, -1 line 0 comments Download
A services/video_capture/video_capture_service_test.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A services/video_capture/video_capture_service_test.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
A + services/video_capture/video_capture_service_unittest.cc View 1 2 3 chunks +23 lines, -34 lines 0 comments Download

Messages

Total messages: 44 (27 generated)
chfremer
mcasas@: Please review general approach and style yzshen@: Please review Mojo aspects emircan@ & rockot@: ...
4 years, 4 months ago (2016-08-12 17:55:31 UTC) #3
chfremer
On 2016/08/12 17:55:31, chfremer wrote: > mcasas@: Please review general approach and style > yzshen@: ...
4 years, 4 months ago (2016-08-19 17:11:54 UTC) #8
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/video_capture_device_factory_impl.h File services/video_capture/video_capture_device_factory_impl.h (right): https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/video_capture_device_factory_impl.h#newcode60 services/video_capture/video_capture_device_factory_impl.h:60: std::unique_ptr<mojo::Binding<mojom::VideoCaptureDeviceProxy>> binding_; I don't see any reason to ...
4 years, 4 months ago (2016-08-19 17:49:00 UTC) #9
chfremer
https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/video_capture_device_factory_impl.h File services/video_capture/video_capture_device_factory_impl.h (right): https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/video_capture_device_factory_impl.h#newcode60 services/video_capture/video_capture_device_factory_impl.h:60: std::unique_ptr<mojo::Binding<mojom::VideoCaptureDeviceProxy>> binding_; On 2016/08/19 17:49:00, Ken Rockot wrote: > ...
4 years, 4 months ago (2016-08-19 18:11:19 UTC) #10
chfremer
mcasas@: PTAL emircan@: FYI
4 years, 3 months ago (2016-08-29 17:41:17 UTC) #12
mcasas
https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/device_client_mojo_to_media_adapter.h File services/video_capture/device_client_mojo_to_media_adapter.h (right): https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/device_client_mojo_to_media_adapter.h#newcode19 services/video_capture/device_client_mojo_to_media_adapter.h:19: class DeviceClientMojoToMediaAdapter Hmm this name doesn't sound 100% right ...
4 years, 3 months ago (2016-08-30 01:20:27 UTC) #13
chfremer
mcasas@: PTAL https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/device_client_mojo_to_media_adapter.h File services/video_capture/device_client_mojo_to_media_adapter.h (right): https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/device_client_mojo_to_media_adapter.h#newcode19 services/video_capture/device_client_mojo_to_media_adapter.h:19: class DeviceClientMojoToMediaAdapter On 2016/08/30 01:20:26, mcasas wrote: ...
4 years, 3 months ago (2016-08-30 18:22:55 UTC) #15
mcasas
Almost there, just a few comments. https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/video_capture_device_factory_impl.cc File services/video_capture/video_capture_device_factory_impl.cc (right): https://codereview.chromium.org/2238083004/diff/60001/services/video_capture/video_capture_device_factory_impl.cc#newcode37 services/video_capture/video_capture_device_factory_impl.cc:37: bool VideoCaptureDeviceFactoryImpl::DeviceEntry::DescriptorEquals( On ...
4 years, 3 months ago (2016-08-31 21:10:36 UTC) #16
chfremer
mcasas@: PTAL Also, will ping you regarding one of the questions. https://codereview.chromium.org/2238083004/diff/120001/services/video_capture/fake_device_video_capture_service_test.h File services/video_capture/fake_device_video_capture_service_test.h (right): ...
4 years, 3 months ago (2016-08-31 21:49:43 UTC) #17
chfremer
mcasas@: PTAL https://codereview.chromium.org/2238083004/diff/120001/services/video_capture/video_capture_device_factory_impl.cc File services/video_capture/video_capture_device_factory_impl.cc (right): https://codereview.chromium.org/2238083004/diff/120001/services/video_capture/video_capture_device_factory_impl.cc#newcode86 services/video_capture/video_capture_device_factory_impl.cc:86: entry.Unbind(); On 2016/08/31 21:49:43, chfremer wrote: > ...
4 years, 3 months ago (2016-08-31 22:30:52 UTC) #18
chfremer
dalecurtis@: PTAL, I am adding a DEPS on media/mojo and media/capture/video.
4 years, 3 months ago (2016-08-31 23:21:06 UTC) #20
mcasas
after some offline discussion, lgtm
4 years, 3 months ago (2016-08-31 23:22:36 UTC) #21
DaleCurtis
=>sandersd since I'm not sure what the latest state of mojo deps plan is.
4 years, 3 months ago (2016-09-01 00:09:10 UTC) #23
sandersd (OOO until July 31)
On 2016/09/01 00:09:10, DaleCurtis wrote: > =>sandersd since I'm not sure what the latest state ...
4 years, 3 months ago (2016-09-01 00:14:19 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2238083004/200001
4 years, 3 months ago (2016-09-01 20:04:49 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:200001)
4 years, 3 months ago (2016-09-01 20:10:14 UTC) #42
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 20:12:14 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3cfa98dff3f78af0da0e2b8f22d0f77e6fde0c28
Cr-Commit-Position: refs/heads/master@{#416029}

Powered by Google App Engine
This is Rietveld 408576698