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

Issue 1417533006: Unit test for WebMediaPlayerMS (Closed)

Created:
5 years, 2 months ago by qiangchen
Modified:
5 years ago
Reviewers:
mcasas
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

We add a unit test for WebMediaPlayerMS in this CL. BUG= Committed: https://crrev.com/cb1fbb8a0c10b67e623bdbe57ca82680465c5cbb Cr-Commit-Position: refs/heads/master@{#365575}

Patch Set 1 : Unittest #

Total comments: 12

Patch Set 2 : Except Mock Classes Restructure #

Patch Set 3 : Rebase and merge some classes together #

Total comments: 26

Patch Set 4 : Style #

Total comments: 24

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Resolving Trybot Issues #

Total comments: 30

Patch Set 8 : Style fix #

Patch Set 9 : Kill Memory Leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+686 lines, -12 lines) Patch
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -5 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms_compositor.h View 1 2 4 chunks +12 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms_compositor.cc View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download
A content/renderer/media/webmediaplayer_ms_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +638 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (11 generated)
qiangchen
Hi, Miguel: Can you glance at this CL a little bit? Before you dive into ...
5 years, 2 months ago (2015-10-20 16:28:26 UTC) #4
mcasas
Some comments to get you going. https://chromiumcodereview.appspot.com/1417533006/diff/20001/content/renderer/media/webmediaplayer_ms.h File content/renderer/media/webmediaplayer_ms.h (right): https://chromiumcodereview.appspot.com/1417533006/diff/20001/content/renderer/media/webmediaplayer_ms.h#newcode161 content/renderer/media/webmediaplayer_ms.h:161: cc::VideoFrameProvider* LoadForTesting(bool algorithm_enabled); ...
5 years, 2 months ago (2015-10-21 19:54:02 UTC) #5
qiangchen
Fixed the minor issues. Still asking for opinion on where to put those Test classes. ...
5 years, 2 months ago (2015-10-22 17:22:58 UTC) #7
qiangchen
Finally get time to do this CL. Main change in this patch: 1. Rebased 2. ...
5 years, 1 month ago (2015-11-03 23:20:59 UTC) #9
mcasas
A few comments to get you going. https://codereview.chromium.org/1417533006/diff/100001/content/renderer/media/webmediaplayer_ms.cc File content/renderer/media/webmediaplayer_ms.cc (right): https://codereview.chromium.org/1417533006/diff/100001/content/renderer/media/webmediaplayer_ms.cc#newcode67 content/renderer/media/webmediaplayer_ms.cc:67: if (!security_origin.isNull()) ...
5 years, 1 month ago (2015-11-04 22:20:32 UTC) #10
mcasas
On 2015/11/04 22:20:32, mcasas wrote: > A few comments to get you going. > > ...
5 years, 1 month ago (2015-11-04 22:21:23 UTC) #11
qiangchen
Fixed most. But I found some difficulty using inheritance for the WaitableMessageLoopEvent. See my comment ...
5 years, 1 month ago (2015-11-06 19:14:58 UTC) #12
qiangchen
ping mcasas@ to take a look at this.
5 years, 1 month ago (2015-11-16 17:21:28 UTC) #13
qiangchen
ping mcasas@ to take a look at this.
5 years, 1 month ago (2015-11-16 17:21:30 UTC) #14
mcasas
Another round of comments about the accessory classes, getting there, sorry for the delay :P ...
5 years ago (2015-12-02 19:42:32 UTC) #15
qiangchen
After a rebase. Fixed and replied. For the test class inheritance, I do not see ...
5 years ago (2015-12-05 00:24:15 UTC) #17
mcasas
https://codereview.chromium.org/1417533006/diff/120001/content/renderer/media/webmediaplayer_ms_unittest.cc File content/renderer/media/webmediaplayer_ms_unittest.cc (right): https://codereview.chromium.org/1417533006/diff/120001/content/renderer/media/webmediaplayer_ms_unittest.cc#newcode237 content/renderer/media/webmediaplayer_ms_unittest.cc:237: return static_cast<MockVideoFrameProvider*>(provider_.get()); On 2015/12/05 00:24:15, qiangchenC wrote: > On ...
5 years ago (2015-12-08 22:54:49 UTC) #18
qiangchen
fixed most. For array vs vector. One obstruction is that array has length as part ...
5 years ago (2015-12-09 00:55:24 UTC) #19
mcasas
LGTM. std::vector<> is also OK if the input seqs are of different lengths.
5 years ago (2015-12-15 21:43:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417533006/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417533006/240001
5 years ago (2015-12-16 00:40:32 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_x86-generic_chromium_compile_only_ng on ...
5 years ago (2015-12-16 02:48:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417533006/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417533006/240001
5 years ago (2015-12-16 17:35:13 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:240001)
5 years ago (2015-12-16 18:42:25 UTC) #28
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/cb1fbb8a0c10b67e623bdbe57ca82680465c5cbb Cr-Commit-Position: refs/heads/master@{#365575}
5 years ago (2015-12-16 18:43:33 UTC) #30
qiangchen
5 years ago (2015-12-16 21:29:59 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:240001) has been created in
https://codereview.chromium.org/1531073002/ by qiangchen@chromium.org.

The reason for reverting is: Break test.

Use of Uninitialized Variable..

Powered by Google App Engine
This is Rietveld 408576698