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

Issue 2592913002: [eme] Break mojo connection during call (Closed)

Created:
4 years ago by jrummell
Modified:
3 years, 11 months ago
Reviewers:
xhwang
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, alokp+watch_chromium.org, darin (slow to review), Aaron Boodman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Test breaking the mojo connection to MojoCdm Improve the testing on MojoCdm by adding a MockCdm. This allows for testing that: - resolving the promise works - rejecting the promise works - closing the connection before a call works - closing the connection while executing the call works. BUG=671362 TEST=new tests pass Review-Url: https://codereview.chromium.org/2592913002 Cr-Commit-Position: refs/heads/master@{#442104} Committed: https://chromium.googlesource.com/chromium/src/+/0d5d318987dde8b60ca474976128c5543b2e2563

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 12

Patch Set 3 : changes #

Total comments: 4

Patch Set 4 : factory changes #

Total comments: 4

Patch Set 5 : remaining nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+692 lines, -108 lines) Patch
M media/base/mock_filters.h View 1 2 3 4 2 chunks +117 lines, -0 lines 0 comments Download
M media/base/mock_filters.cc View 1 2 3 4 2 chunks +113 lines, -0 lines 0 comments Download
M media/mojo/clients/mojo_cdm.h View 1 3 chunks +8 lines, -5 lines 0 comments Download
M media/mojo/clients/mojo_cdm.cc View 1 10 chunks +43 lines, -37 lines 0 comments Download
M media/mojo/clients/mojo_cdm_unittest.cc View 1 2 3 4 6 chunks +411 lines, -66 lines 0 comments Download

Messages

Total messages: 37 (27 generated)
jrummell
PTAL (when you get back).
4 years ago (2016-12-21 01:23:03 UTC) #3
xhwang
Nice patch! I only have a few comments on the test. https://codereview.chromium.org/2592913002/diff/20001/media/base/mock_filters.h File media/base/mock_filters.h (right): ...
3 years, 11 months ago (2017-01-05 06:59:53 UTC) #15
ddorwin
Thanks for adding these tests. Please update the first line of the description to make ...
3 years, 11 months ago (2017-01-05 18:21:30 UTC) #16
jrummell
Updated. https://codereview.chromium.org/2592913002/diff/20001/media/base/mock_filters.h File media/base/mock_filters.h (right): https://codereview.chromium.org/2592913002/diff/20001/media/base/mock_filters.h#newcode473 media/base/mock_filters.h:473: uint32_t promise_id)); On 2017/01/05 06:59:53, xhwang wrote: > ...
3 years, 11 months ago (2017-01-05 23:47:22 UTC) #21
xhwang
looking much cleaner! just a few more ideas for discussion. https://codereview.chromium.org/2592913002/diff/40001/media/base/mock_filters.cc File media/base/mock_filters.cc (right): https://codereview.chromium.org/2592913002/diff/40001/media/base/mock_filters.cc#newcode282 ...
3 years, 11 months ago (2017-01-06 06:21:36 UTC) #24
jrummell
Factory changed. https://codereview.chromium.org/2592913002/diff/40001/media/base/mock_filters.cc File media/base/mock_filters.cc (right): https://codereview.chromium.org/2592913002/diff/40001/media/base/mock_filters.cc#newcode282 media/base/mock_filters.cc:282: session_keys_change_cb, session_expiration_update_cb); On 2017/01/06 06:21:36, xhwang wrote: ...
3 years, 11 months ago (2017-01-06 18:59:28 UTC) #27
xhwang
Thanks! LGTM with nits https://codereview.chromium.org/2592913002/diff/60001/media/base/mock_filters.h File media/base/mock_filters.h (right): https://codereview.chromium.org/2592913002/diff/60001/media/base/mock_filters.h#newcode551 media/base/mock_filters.h:551: MockCdm* Cdm(); nit: Functions typically ...
3 years, 11 months ago (2017-01-06 21:00:21 UTC) #30
jrummell
Thansk for the reviews. https://codereview.chromium.org/2592913002/diff/60001/media/base/mock_filters.h File media/base/mock_filters.h (right): https://codereview.chromium.org/2592913002/diff/60001/media/base/mock_filters.h#newcode551 media/base/mock_filters.h:551: MockCdm* Cdm(); On 2017/01/06 21:00:21, ...
3 years, 11 months ago (2017-01-06 22:49:16 UTC) #31
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/2592913002/80001
3 years, 11 months ago (2017-01-06 22:49:48 UTC) #34
commit-bot: I haz the power
3 years, 11 months ago (2017-01-07 00:15:55 UTC) #37
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0d5d318987dde8b60ca474976128...

Powered by Google App Engine
This is Rietveld 408576698