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

Issue 190563002: Refactored how WebRTC content browser tests talk to their javascript. (Closed)

Created:
6 years, 9 months ago by phoglund_chromium
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Refactored how WebRTC content browser tests talk to their javascript. We will now use the domAutomationController rather than looking at the page title. This will confer the following advantages: - Tests will fail right away when the js detects an error, rather than timing out. - We will get a lot better stack traces when errors do occur. - The communication path to the tests becomes more flexible with possibility for custom return values (for instance if we need to verify something in the C++ code or have a multi-stage test). BUG=None NOTRY=True (doing notry since CQ gets stuck on telemetry test on mac_rel) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255795

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : Moved android stuff back where it belongs, cleaned up #

Patch Set 5 : Rebased #

Patch Set 6 : Trying to resolve weird patch issue #

Patch Set 7 : Fixed android error. #

Patch Set 8 : #

Patch Set 9 : Fixed AEC dump tests on Andri #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -249 lines) Patch
M content/browser/media/webrtc_aecdump_browsertest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/media/webrtc_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -8 lines 0 comments Download
M content/browser/media/webrtc_getusermedia_browsertest.cc View 1 2 3 10 chunks +34 lines, -40 lines 0 comments Download
M content/test/data/media/getusermedia.html View 1 2 3 7 chunks +119 lines, -31 lines 0 comments Download
M content/test/data/media/peerconnection-call.html View 1 2 3 4 5 6 27 chunks +46 lines, -53 lines 0 comments Download
M content/test/data/media/webrtc_test_audio.js View 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/media/webrtc_test_utilities.js View 1 4 chunks +28 lines, -96 lines 0 comments Download
M content/test/webrtc_content_browsertest_base.h View 1 1 chunk +3 lines, -5 lines 0 comments Download
M content/test/webrtc_content_browsertest_base.cc View 1 2 3 2 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
phoglund_chromium
tommi: owner stamp perkj: main review
6 years, 9 months ago (2014-03-07 13:34:48 UTC) #1
phoglund_chromium
https://codereview.chromium.org/190563002/diff/40001/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (right): https://codereview.chromium.org/190563002/diff/40001/content/test/data/media/getusermedia.html#newcode164 content/test/data/media/getusermedia.html:164: // This function tries to calculate the aspect ratio ...
6 years, 9 months ago (2014-03-07 13:41:18 UTC) #2
perkj_chrome
Looks good. https://codereview.chromium.org/190563002/diff/40001/content/browser/media/webrtc_getusermedia_browsertest.cc File content/browser/media/webrtc_getusermedia_browsertest.cc (right): https://codereview.chromium.org/190563002/diff/40001/content/browser/media/webrtc_getusermedia_browsertest.cc#newcode123 content/browser/media/webrtc_getusermedia_browsertest.cc:123: // Let the stream run for while ...
6 years, 9 months ago (2014-03-07 14:00:21 UTC) #3
phoglund_chromium
PTAL https://codereview.chromium.org/190563002/diff/40001/content/browser/media/webrtc_getusermedia_browsertest.cc File content/browser/media/webrtc_getusermedia_browsertest.cc (right): https://codereview.chromium.org/190563002/diff/40001/content/browser/media/webrtc_getusermedia_browsertest.cc#newcode123 content/browser/media/webrtc_getusermedia_browsertest.cc:123: // Let the stream run for while in ...
6 years, 9 months ago (2014-03-07 14:23:36 UTC) #4
tommi (sloooow) - chröme
rs lgtm
6 years, 9 months ago (2014-03-07 14:48:16 UTC) #5
perkj_chrome
lgtm
6 years, 9 months ago (2014-03-07 15:56:36 UTC) #6
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 9 months ago (2014-03-07 16:14:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/190563002/100001
6 years, 9 months ago (2014-03-07 16:15:07 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 18:02:57 UTC) #9
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=158465
6 years, 9 months ago (2014-03-07 18:02:58 UTC) #10
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 9 months ago (2014-03-07 23:13:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/190563002/140001
6 years, 9 months ago (2014-03-07 23:15:34 UTC) #12
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 9 months ago (2014-03-08 08:31:41 UTC) #13
phoglund_chromium
The CQ bit was unchecked by phoglund@chromium.org
6 years, 9 months ago (2014-03-08 09:28:32 UTC) #14
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 9 months ago (2014-03-08 09:28:38 UTC) #15
phoglund_chromium
The CQ bit was unchecked by phoglund@chromium.org
6 years, 9 months ago (2014-03-08 09:44:10 UTC) #16
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 9 months ago (2014-03-08 15:55:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/190563002/160001
6 years, 9 months ago (2014-03-08 15:55:13 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 16:37:20 UTC) #19
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234449
6 years, 9 months ago (2014-03-08 16:37:20 UTC) #20
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 9 months ago (2014-03-08 17:56:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/190563002/160001
6 years, 9 months ago (2014-03-08 17:57:09 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 19:04:26 UTC) #23
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234521
6 years, 9 months ago (2014-03-08 19:04:27 UTC) #24
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 9 months ago (2014-03-08 20:51:14 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/190563002/160001
6 years, 9 months ago (2014-03-08 20:51:26 UTC) #26
commit-bot: I haz the power
6 years, 9 months ago (2014-03-08 21:01:01 UTC) #27
Message was sent while issue was closed.
Change committed as 255795

Powered by Google App Engine
This is Rietveld 408576698