DescriptionAdds an API for inserting fake devices to internals
This function is meant to be used like this in tests:
internals.addFakeDevice({kind=video}, {facingMode="user"})
.then( => getUserMedia({video: {facingMode: {exact: "user"}}})
.then(s => s.getSettings())
.then(settings => assert_equals(settings.facingMode, "user"))
STATUS: This CL version adds the API surface only.
BUG=678561
Review-Url: https://codereview.chromium.org/2612223002
Cr-Commit-Position: refs/heads/master@{#444376}
Committed: https://chromium.googlesource.com/chromium/src/+/d005cbf1f2a2d8aecd221922901e7e86fc5bea5c
Patch Set 1 #
Total comments: 1
Messages
Total messages: 15 (8 generated)
|