New issue
Advanced search Search tips

Issue 755880 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Convert DummyWebMediaPlayerClient to a mock in webmediaplayer_impl_unittest.

Project Member Reported by lethalantidote@chromium.org, Aug 16 2017

Issue description

webmediaplayer_impl_unittest uses a DummyWebMediaPlayerClient. We'd get more meaningful coverage with a mock.

Once |client_| is converted from a dummy to a mock,
test that |web_layer| is actually used by |client_|.
 
Cc: lethalantidote@chromium.org
 Issue 765568  has been merged into this issue.
Cc: mlamouri@chromium.org dalecur...@chromium.org
+dalecurtis@ FYI
Status: Started (was: Assigned)
Project Member

Comment 4 by bugdroid1@chromium.org, Jan 12 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ef15b62a4bbedf654f86fb5149ac23026c23af61

commit ef15b62a4bbedf654f86fb5149ac23026c23af61
Author: CJ DiMeglio <lethalantidote@chromium.org>
Date: Fri Jan 12 00:41:59 2018

Mock WebMediaPlayerClient.

This CL mocks the WebMediaPlayerClient (previously a fake) in
unittesting to confirm that the correct web_layer is being passed to
it. I've included a few other expect calls, but since some of the
call patterns are highly variable based on commandline args, I
demoted this to a NiceMock.

Bug:  755880 
Change-Id: I1cf844701a115551ff49d104ec61d39da1774eaa
Reviewed-on: https://chromium-review.googlesource.com/804699
Commit-Queue: CJ DiMeglio <lethalantidote@chromium.org>
Reviewed-by: Frank Liberato <liberato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#528832}
[modify] https://crrev.com/ef15b62a4bbedf654f86fb5149ac23026c23af61/media/blink/webmediaplayer_impl_unittest.cc

Status: Fixed (was: Started)

Sign in to add a comment