See VideoCaptureManager::ProcessDeviceStartRequestQueue() [1].
The unit test VideoCaptureManagerTest.OpenNotExisting requires us to fail synchronously if the stream_type is MEDIA_DEVICE_VIDEO_CAPTURE and no DeviceInfo matching the requested id is present (which is the case when requesting a device with a bogus id). Note, that since other types of failure during startup of the device are allowed to be reported asynchronously, this requirement is questionable.
Check if any production code actually depends on this requirement. If not, relax the requirement in the test and simplify.
[1] https://cs.chromium.org/chromium/src/content/browser/renderer_host/media/video_capture_manager.cc?q=VideoCaptureManager&dr=CSs&l=294
Comment 1 by sheriffbot@chromium.org
, Apr 6 2018Status: Untriaged (was: Available)