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

Issue 2070753002: media: Add unittest for MojoRenderer{Impl|Service} (Closed)

Created:
4 years, 6 months ago by xhwang
Modified:
4 years, 6 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, alokp+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, alokp
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Add unittest for MojoRenderer{Impl|Service} This setup the following chain to test both MojoRendererImpl and MojoRendererService: MojoRendererTest -> MojoRendererImpl -> (mojom::Renderer) -> MojoRendererService -> MockRenderer This CL also fixes some real issues in MojoRendererImpl: - After connection error, we may have outstanding callbacks not fired - If we call MojoRendererImpl after error, callbacks should still be fired. BUG=617204 TEST=This adds new unittests. Committed: https://crrev.com/58cf81460b741ef317f54de1756e5cd855034bfe Cr-Commit-Position: refs/heads/master@{#400581}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments addressed #

Patch Set 3 : fix visibility :( #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -30 lines) Patch
M media/base/cdm_context.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/cdm_context.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/mock_filters.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/mock_filters.cc View 1 chunk +5 lines, -1 line 0 comments Download
M media/mojo/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M media/mojo/clients/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M media/mojo/clients/mojo_renderer_impl.h View 1 3 chunks +13 lines, -7 lines 0 comments Download
M media/mojo/clients/mojo_renderer_impl.cc View 1 11 chunks +86 lines, -15 lines 0 comments Download
A media/mojo/clients/mojo_renderer_unittest.cc View 1 chunk +382 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_cdm_service.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_cdm_service_context.h View 2 chunks +2 lines, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_service.h View 2 chunks +3 lines, -1 line 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
xhwang
sandersd: PTAL alokp: FYI
4 years, 6 months ago (2016-06-16 06:44:50 UTC) #2
xhwang
BTW, this test is not enabled on any bots. My other CL (https://chromiumcodereview.appspot.com/2069043003/) will at ...
4 years, 6 months ago (2016-06-16 06:45:55 UTC) #3
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/2070753002/diff/1/media/mojo/clients/BUILD.gn File media/mojo/clients/BUILD.gn (right): https://chromiumcodereview.appspot.com/2070753002/diff/1/media/mojo/clients/BUILD.gn#newcode10 media/mojo/clients/BUILD.gn:10: # TODO(xhwang): Only allow //media/mojo/services:media_mojo_shell_unittests Comment is now on ...
4 years, 6 months ago (2016-06-16 18:10:06 UTC) #4
xhwang
comments addressed
4 years, 6 months ago (2016-06-17 06:58:18 UTC) #5
xhwang
PTAL again https://chromiumcodereview.appspot.com/2070753002/diff/1/media/mojo/clients/BUILD.gn File media/mojo/clients/BUILD.gn (right): https://chromiumcodereview.appspot.com/2070753002/diff/1/media/mojo/clients/BUILD.gn#newcode10 media/mojo/clients/BUILD.gn:10: # TODO(xhwang): Only allow //media/mojo/services:media_mojo_shell_unittests On 2016/06/16 ...
4 years, 6 months ago (2016-06-17 06:59:00 UTC) #6
sandersd (OOO until July 31)
lgtm
4 years, 6 months ago (2016-06-17 17:44:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070753002/40001
4 years, 6 months ago (2016-06-17 18:32:36 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/241048)
4 years, 6 months ago (2016-06-17 20:26:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070753002/40001
4 years, 6 months ago (2016-06-18 05:02:47 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-18 06:33:15 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-18 06:35:20 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/58cf81460b741ef317f54de1756e5cd855034bfe
Cr-Commit-Position: refs/heads/master@{#400581}

Powered by Google App Engine
This is Rietveld 408576698