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

Issue 2244773002: Video Capture Mojo (1.4c): Handle Subsequent Access (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@FillServicePart2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Video Capture Mojo: Handle Subsequent Access This CL is part of the Mojo Video Capture work. For the bigger picture, see [1]. A class diagram illustrating the APIs and implementations is found at [2]. * Added class FakeDeviceDescriptorVideoCaptureServiceTest test fixture into the inheritance chain between VideoCaptureServiceTest and FakeDeviceVideoCaptureServiceTest. This is to avoid duplication of test SetUp() code. * Added test cases using the new test setup: 1. AccessIsRevokedOnSecondAccess 2. CanUseSecondRequestedProxy * In file video_capture_device_factory.mojom: Added comment for specifying expected behavior. * Added code needed to make new test cases 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://docs.google.com/a/chromium.org/drawings/d/1RUgghIp8HHwurQOWEcs7-UVQXdfLPUyhM6Afaj1MZtM/edit?usp=sharing Committed: https://crrev.com/fa6a12d52e60cce192793e16da4a42c17296dc19 Cr-Commit-Position: refs/heads/master@{#416693}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rename tests #

Patch Set 3 : mcasas' comments #

Total comments: 5

Patch Set 4 : rockot's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -145 lines) Patch
M services/video_capture/BUILD.gn View 1 1 chunk +6 lines, -3 lines 0 comments Download
A services/video_capture/fake_device_descriptor_test.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + services/video_capture/fake_device_descriptor_test.cc View 1 2 2 chunks +6 lines, -14 lines 0 comments Download
A services/video_capture/fake_device_descriptor_unittest.cc View 1 2 1 chunk +94 lines, -0 lines 0 comments Download
A services/video_capture/fake_device_test.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
A services/video_capture/fake_device_test.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A + services/video_capture/fake_device_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M services/video_capture/fake_device_video_capture_service_test.h View 1 1 chunk +0 lines, -27 lines 0 comments Download
M services/video_capture/fake_device_video_capture_service_test.cc View 1 1 chunk +0 lines, -44 lines 0 comments Download
D services/video_capture/fake_device_video_capture_service_unittest.cc View 1 1 chunk +0 lines, -45 lines 0 comments Download
M services/video_capture/public/interfaces/video_capture_device_factory.mojom View 1 chunk +3 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_factory_impl.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_factory_impl.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M services/video_capture/video_capture_device_proxy_impl.cc View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M services/video_capture/video_capture_service_unittest.cc View 1 2 2 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
chfremer
mcasas@: Please review general approach and style yzshen@: Please review Mojo aspects emircan@ & rockot@: ...
4 years, 4 months ago (2016-08-12 18:00:56 UTC) #3
chfremer
mcasas@: PTAL general review rockot@: PTAL Mojo specifics emircan@: FYI yzshen@: FYI
4 years, 3 months ago (2016-09-01 20:48:10 UTC) #10
mcasas
Some minor comments. https://codereview.chromium.org/2244773002/diff/100001/services/video_capture/fake_device_descriptor_video_capture_service_test.h File services/video_capture/fake_device_descriptor_video_capture_service_test.h (right): https://codereview.chromium.org/2244773002/diff/100001/services/video_capture/fake_device_descriptor_video_capture_service_test.h#newcode15 services/video_capture/fake_device_descriptor_video_capture_service_test.h:15: : public VideoCaptureServiceTest { The class ...
4 years, 3 months ago (2016-09-02 16:15:15 UTC) #16
chfremer
mcasas@: PTAL https://codereview.chromium.org/2244773002/diff/100001/services/video_capture/fake_device_descriptor_video_capture_service_test.h File services/video_capture/fake_device_descriptor_video_capture_service_test.h (right): https://codereview.chromium.org/2244773002/diff/100001/services/video_capture/fake_device_descriptor_video_capture_service_test.h#newcode15 services/video_capture/fake_device_descriptor_video_capture_service_test.h:15: : public VideoCaptureServiceTest { On 2016/09/02 16:15:14, ...
4 years, 3 months ago (2016-09-02 17:44:32 UTC) #17
mcasas
lgtm bots please :-)
4 years, 3 months ago (2016-09-03 01:23:48 UTC) #19
chfremer
tsepez@: PTAL for video_capture_device_factory.mojom: Added comment for specifying expected behavior.
4 years, 3 months ago (2016-09-06 15:20:09 UTC) #25
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2244773002/diff/140001/services/video_capture/video_capture_device_factory_impl.h File services/video_capture/video_capture_device_factory_impl.h (right): https://codereview.chromium.org/2244773002/diff/140001/services/video_capture/video_capture_device_factory_impl.h#newcode62 services/video_capture/video_capture_device_factory_impl.h:62: std::unique_ptr<mojo::Binding<mojom::VideoCaptureDeviceProxy>> binding_; Apologies if I missed this in ...
4 years, 3 months ago (2016-09-06 16:50:26 UTC) #26
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2244773002/diff/140001/services/video_capture/video_capture_device_factory_impl.h File services/video_capture/video_capture_device_factory_impl.h (right): https://codereview.chromium.org/2244773002/diff/140001/services/video_capture/video_capture_device_factory_impl.h#newcode62 services/video_capture/video_capture_device_factory_impl.h:62: std::unique_ptr<mojo::Binding<mojom::VideoCaptureDeviceProxy>> binding_; On 2016/09/06 at 16:50:26, Ken Rockot wrote: ...
4 years, 3 months ago (2016-09-06 17:00:29 UTC) #27
chfremer
https://codereview.chromium.org/2244773002/diff/140001/services/video_capture/video_capture_device_factory_impl.h File services/video_capture/video_capture_device_factory_impl.h (right): https://codereview.chromium.org/2244773002/diff/140001/services/video_capture/video_capture_device_factory_impl.h#newcode62 services/video_capture/video_capture_device_factory_impl.h:62: std::unique_ptr<mojo::Binding<mojom::VideoCaptureDeviceProxy>> binding_; On 2016/09/06 17:00:28, Ken Rockot wrote: > ...
4 years, 3 months ago (2016-09-06 17:29:59 UTC) #28
Tom Sepez
RS LGTM on comment in mojom
4 years, 3 months ago (2016-09-06 17:57:03 UTC) #29
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/2244773002/160001
4 years, 3 months ago (2016-09-06 18:13:01 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:160001)
4 years, 3 months ago (2016-09-06 20:19:34 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 20:22:03 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fa6a12d52e60cce192793e16da4a42c17296dc19
Cr-Commit-Position: refs/heads/master@{#416693}

Powered by Google App Engine
This is Rietveld 408576698