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

Issue 635833002: Refactor WebRTC getUserMedia tests to be more explicit and clear. (Closed)

Created:
6 years, 2 months ago by phoglund_chromium
Modified:
6 years, 2 months ago
Reviewers:
perkj_chrome
CC:
chromium-reviews, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor WebRTC getUserMedia tests to be more explicit and clear. This patch fixes a bunch of ambigous names, inlines a bunch of unnecessary helper methods and gets rid of the magical global variable gLocalStream. In general, the first acquired stream had a first-class citizen status that made tests with several streams very confusing. It was also assumed to go together with the video tag local-view-1. This is still true, but it has been made much more explicit in the code. The tracing test still needs a "global", but I worked around that problem by 1) letting the c++ code be in control of what that global is and 2) stashing in in window[streamName] so it doesn't pollute the rest of js code, which does not need this variable to be global. The next step is to try to make the *TwoGetUserMedia* tests be more parallel, or at least do less checks. They're too slow on Windows, which causes them to flake. BUG=417756 Committed: https://crrev.com/4eb7545566f51c7e48ddd1b672520514d795a17b Cr-Commit-Position: refs/heads/master@{#298484}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Clarified TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -87 lines) Patch
M content/browser/media/webrtc_getusermedia_browsertest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/data/media/getusermedia.html View 1 2 15 chunks +91 lines, -84 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
phoglund_chromium
6 years, 2 months ago (2014-10-07 12:16:10 UTC) #2
perkj_chrome
lgtm - but please consider rewording your TODO https://codereview.chromium.org/635833002/diff/20001/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (right): https://codereview.chromium.org/635833002/diff/20001/content/test/data/media/getusermedia.html#newcode168 content/test/data/media/getusermedia.html:168: // ...
6 years, 2 months ago (2014-10-07 13:07:23 UTC) #3
phoglund_chromium
https://codereview.chromium.org/635833002/diff/20001/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (right): https://codereview.chromium.org/635833002/diff/20001/content/test/data/media/getusermedia.html#newcode168 content/test/data/media/getusermedia.html:168: // TODO(phoglund): make gUM requests in parallel; this test ...
6 years, 2 months ago (2014-10-07 13:57:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/635833002/40001
6 years, 2 months ago (2014-10-07 13:59:21 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as d54042c35d68e05bec0f590e9fa1a7354a636b65
6 years, 2 months ago (2014-10-07 15:34:17 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-07 15:35:01 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4eb7545566f51c7e48ddd1b672520514d795a17b
Cr-Commit-Position: refs/heads/master@{#298484}

Powered by Google App Engine
This is Rietveld 408576698