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

Issue 2729783003: [Mojo Video Capture] Add content_browsertest for exercising video capture (Closed)

Created:
3 years, 9 months ago by chfremer
Modified:
3 years, 9 months ago
Reviewers:
emircan, mcasas, miu
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo Video Capture] Add content_browsertest for exercising video capture Add content_browsertest for exercising video capture with a fake video capture device and various formats. The test exercises the VideoCaptureManager API. It provides test coverage for the upcoming refactorings and changes to VideoCaptureManager that will enable switching between Mojo service and in-process version of the video capture functionality. Two additional changes to the API and behavior of VideoCaptureManager were useful/needed while adding this test: 1.) In interface MediaStreamProvider, in method Open(), pass in a MediaStreamDevice instead of a StreamDeviceInfo. No implementation was using the extra information that comes with StreamDeviceInfo. 2.) Allow more than one MediaStreamProviderListener to be registered. This allows the test to listen to the events while the "regular" observer is present. This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL13. BUG=584797 TEST= content_browsertests --gtest_filter="VideoCaptureBrowserTest.*" content_unittests --gtest_filter="*Video*", capture_unittests --gtest_filter="VideoCaptureDeviceClientTest*" [1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing Review-Url: https://codereview.chromium.org/2729783003 Cr-Commit-Position: refs/heads/master@{#455190} Committed: https://chromium.googlesource.com/chromium/src/+/fc2a14167187133bab1e82c6b47ad051d5768201

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix for android compile error #

Patch Set 3 : miguel@ suggestions #

Total comments: 12

Patch Set 4 : incorporated miu@'s suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -101 lines) Patch
M content/browser/renderer_host/media/audio_input_device_manager.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager.cc View 1 2 3 7 chunks +17 lines, -18 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager_unittest.cc View 7 chunks +10 lines, -11 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_manager_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_provider.h View 1 chunk +2 lines, -2 lines 0 comments Download
A content/browser/renderer_host/media/video_capture_browsertest.cc View 1 2 3 1 chunk +255 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 7 chunks +15 lines, -23 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 29 chunks +32 lines, -32 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 38 (26 generated)
chfremer
miu@: PTAL mcasas@: PTAL emircan@: FYI
3 years, 9 months ago (2017-03-02 23:42:49 UTC) #4
mcasas
tests FTW! lgtm % comments addressed https://codereview.chromium.org/2729783003/diff/20001/content/browser/media/capture/video_capture_browsertest.cc File content/browser/media/capture/video_capture_browsertest.cc (right): https://codereview.chromium.org/2729783003/diff/20001/content/browser/media/capture/video_capture_browsertest.cc#newcode178 content/browser/media/capture/video_capture_browsertest.cc:178: static const size_t ...
3 years, 9 months ago (2017-03-03 00:21:13 UTC) #11
chfremer
Incorporated suggestions from PS1. https://codereview.chromium.org/2729783003/diff/20001/content/browser/media/capture/video_capture_browsertest.cc File content/browser/media/capture/video_capture_browsertest.cc (right): https://codereview.chromium.org/2729783003/diff/20001/content/browser/media/capture/video_capture_browsertest.cc#newcode178 content/browser/media/capture/video_capture_browsertest.cc:178: static const size_t num_frames_to_receive = ...
3 years, 9 months ago (2017-03-03 18:21:14 UTC) #15
chfremer
ping miu@: Could you have a look, please?
3 years, 9 months ago (2017-03-06 16:12:28 UTC) #19
miu
https://codereview.chromium.org/2729783003/diff/60001/content/browser/media/capture/video_capture_browsertest.cc File content/browser/media/capture/video_capture_browsertest.cc (right): https://codereview.chromium.org/2729783003/diff/60001/content/browser/media/capture/video_capture_browsertest.cc#newcode1 content/browser/media/capture/video_capture_browsertest.cc:1: // Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 9 months ago (2017-03-06 21:54:10 UTC) #21
chfremer
miu@: PTAL https://codereview.chromium.org/2729783003/diff/60001/content/browser/media/capture/video_capture_browsertest.cc File content/browser/media/capture/video_capture_browsertest.cc (right): https://codereview.chromium.org/2729783003/diff/60001/content/browser/media/capture/video_capture_browsertest.cc#newcode1 content/browser/media/capture/video_capture_browsertest.cc:1: // Copyright 2017 The Chromium Authors. All ...
3 years, 9 months ago (2017-03-06 23:39:38 UTC) #24
miu
lgtm
3 years, 9 months ago (2017-03-07 00:31:36 UTC) #25
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/2729783003/80001
3 years, 9 months ago (2017-03-07 18:53:13 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/380035)
3 years, 9 months ago (2017-03-07 19:05:49 UTC) #32
emircan
RS lgtm
3 years, 9 months ago (2017-03-07 19:09:34 UTC) #33
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/2729783003/80001
3 years, 9 months ago (2017-03-07 19:22:47 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 20:13:47 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/fc2a14167187133bab1e82c6b47a...

Powered by Google App Engine
This is Rietveld 408576698