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 #Depends on Patchset: Dependent Patchsets: Messages
Total messages: 38 (26 generated)
|