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

Issue 2606633002: encrypted-media tests should not count # of SuspendableObjects (Closed)

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

Description

encrypted-media tests should not count # of SuspendableObjects It is too fragile to count # of SuspendableObjects because the result changes when people add/remove SuspendableObjects from the code base. Alternately, the tests should directly count # of MediaKeys and MediaKeysSessions. BUG=610176 Committed: https://crrev.com/7f6899612b14fdb5555e122092771675b98e0633 Cr-Commit-Position: refs/heads/master@{#440709}

Patch Set 1 #

Total comments: 5

Patch Set 2 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -216 lines) Patch
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys-with-session.html View 1 4 chunks +18 lines, -26 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html View 1 6 chunks +26 lines, -52 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-release.html View 1 3 chunks +22 lines, -46 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-release-noreference.html View 1 4 chunks +22 lines, -40 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html View 1 4 chunks +12 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/InstanceCounters.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (9 generated)
haraken
PTAL
3 years, 12 months ago (2016-12-26 02:47:02 UTC) #2
sof
Nicely cleans up these "counting" tests. lgtm, provided that this won't create flakiness given the ...
3 years, 12 months ago (2016-12-26 08:00:47 UTC) #3
haraken
https://codereview.chromium.org/2606633002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html File third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html (right): https://codereview.chromium.org/2606633002/diff/1/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html#newcode16 third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html:16: var startingMediaKeysCount = window.internals.mediaKeysCount(document); On 2016/12/26 08:00:47, sof wrote: ...
3 years, 12 months ago (2016-12-26 08:17:19 UTC) #4
sof
https://codereview.chromium.org/2606633002/diff/1/third_party/WebKit/Source/core/testing/Internals.cpp File third_party/WebKit/Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/2606633002/diff/1/third_party/WebKit/Source/core/testing/Internals.cpp#newcode1485 third_party/WebKit/Source/core/testing/Internals.cpp:1485: return InstanceCounters::counterValue(InstanceCounters::MediaKeysCounter); On 2016/12/26 08:17:18, haraken wrote: > On ...
3 years, 12 months ago (2016-12-26 09:23:06 UTC) #7
haraken
On 2016/12/26 09:23:06, sof wrote: > https://codereview.chromium.org/2606633002/diff/1/third_party/WebKit/Source/core/testing/Internals.cpp > File third_party/WebKit/Source/core/testing/Internals.cpp (right): > > https://codereview.chromium.org/2606633002/diff/1/third_party/WebKit/Source/core/testing/Internals.cpp#newcode1485 > ...
3 years, 12 months ago (2016-12-26 09:23:49 UTC) #8
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/2606633002/20001
3 years, 12 months ago (2016-12-26 09:24:01 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 12 months ago (2016-12-26 11:07:37 UTC) #15
commit-bot: I haz the power
3 years, 12 months ago (2016-12-26 11:10:05 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7f6899612b14fdb5555e122092771675b98e0633
Cr-Commit-Position: refs/heads/master@{#440709}

Powered by Google App Engine
This is Rietveld 408576698