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

Issue 2612223002: Adds an API for inserting fake devices to internals (Closed)

Created:
3 years, 11 months ago by hta - Chromium
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews, haraken, mcasas+watch+mediastream_chromium.org, tommyw+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/mediastream/testing/InternalsMediaStream.h View 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/mediastream/testing/InternalsMediaStream.cpp View 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/mediastream/testing/InternalsMediaStream.idl View 1 chunk +10 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
hta - Chromium
This is pursuant to the discussion on testing in this CL: https://codereview.chromium.org/2590193002/ It seemed simpler ...
3 years, 11 months ago (2017-01-05 11:34:09 UTC) #3
Guido Urdaneta
https://codereview.chromium.org/2612223002/diff/1/third_party/WebKit/Source/modules/mediastream/testing/InternalsMediaStream.idl File third_party/WebKit/Source/modules/mediastream/testing/InternalsMediaStream.idl (right): https://codereview.chromium.org/2612223002/diff/1/third_party/WebKit/Source/modules/mediastream/testing/InternalsMediaStream.idl#newcode6 third_party/WebKit/Source/modules/mediastream/testing/InternalsMediaStream.idl:6: [CallWith=ScriptState] Promise<void> addFakeDevice( Would it make sense to make ...
3 years, 11 months ago (2017-01-10 11:21:25 UTC) #4
Guido Urdaneta
Never mind. I saw the use case and the promise give more flexibility for the ...
3 years, 11 months ago (2017-01-10 11:23:45 UTC) #5
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-18 12:20:28 UTC) #7
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/2612223002/1
3 years, 11 months ago (2017-01-18 12:51:04 UTC) #10
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/2612223002/1
3 years, 11 months ago (2017-01-18 12:51:35 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 16:05:33 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d005cbf1f2a2d8aecd221922901e...

Powered by Google App Engine
This is Rietveld 408576698