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

Issue 2618603002: [eme] Convert lifetime tests to promise_tests (Closed)

Created:
3 years, 11 months ago by jrummell
Modified:
3 years, 11 months ago
Reviewers:
xhwang
CC:
chromium-reviews, blink-reviews, feature-media-reviews_chromium.org, Srirama, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[eme] Convert lifetime tests to promise_tests Now that there is support to count the number of active MediaKey and MediaKeySession objects, update the tests to check the count directly (there should be no such objects at the start of the test, and if there are then something else is running and the counts will be wrong anyway). By converting these tests to promise tests, we get better logging if the test fails. BUG=445324 TEST=updated tests pass Review-Url: https://codereview.chromium.org/2618603002 Cr-Commit-Position: refs/heads/master@{#443113} Committed: https://chromium.googlesource.com/chromium/src/+/284ba384594565e8bdfdc25aad3cecf4f55ba16b

Patch Set 1 #

Total comments: 5

Patch Set 2 : changes #

Patch Set 3 : move to utils #

Messages

Total messages: 22 (12 generated)
jrummell
PTAL.
3 years, 11 months ago (2017-01-05 00:43:44 UTC) #4
xhwang
lg, just a few nits https://codereview.chromium.org/2618603002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html (right): https://codereview.chromium.org/2618603002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html#newcode26 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html:26: return createGCPromise().then(function() { Could ...
3 years, 11 months ago (2017-01-05 20:05:06 UTC) #7
jrummell
Updated. https://codereview.chromium.org/2618603002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html (right): https://codereview.chromium.org/2618603002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html#newcode26 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html:26: return createGCPromise().then(function() { On 2017/01/05 20:05:06, xhwang wrote: ...
3 years, 11 months ago (2017-01-06 22:10:18 UTC) #8
xhwang
https://codereview.chromium.org/2618603002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html (right): https://codereview.chromium.org/2618603002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html#newcode39 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html:39: assert_equals(window.internals.mediaKeySessionCount(), 0, 'After final gc()'); On 2017/01/06 22:10:18, jrummell ...
3 years, 11 months ago (2017-01-09 17:57:17 UTC) #9
jrummell
On 2017/01/09 17:57:17, xhwang wrote: > Does it make sense to move this helper function ...
3 years, 11 months ago (2017-01-09 18:45:49 UTC) #10
xhwang
On 2017/01/09 18:45:49, jrummell wrote: > On 2017/01/09 17:57:17, xhwang wrote: > > > Does ...
3 years, 11 months ago (2017-01-10 00:36:24 UTC) #11
jrummell
> I see. But it seems we already use assert_*() in encrypted-media-utils.js: > > https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-utils.js?rcl=0&l=198 ...
3 years, 11 months ago (2017-01-11 21:28:54 UTC) #14
xhwang
Thanks! LGTM
3 years, 11 months ago (2017-01-11 21:53:27 UTC) #15
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/2618603002/40001
3 years, 11 months ago (2017-01-12 01:29:33 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 01:37:58 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/284ba384594565e8bdfdc25aad3c...

Powered by Google App Engine
This is Rietveld 408576698