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

Issue 1314483003: Improve VideoCaptureImpl unittest. (Closed)

Created:
5 years, 4 months ago by msu.koo
Modified:
5 years, 3 months ago
Reviewers:
mcasas, ajose
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, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve VideoCaptureImpl unittest. This patch includes 2 improvements on VideoCaptureImpl unittest. - Added "BufferReceived" unittest to check when buffer is received. - Added "BufferReceivedAfterStop" unittest to check when buffer is received after stop. BUG=522145 Committed: https://crrev.com/393d2fca30fc7340abd7257f31b2d2884266cd1d Cr-Commit-Position: refs/heads/master@{#348337}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -8 lines) Patch
M content/renderer/media/video_capture_impl_unittest.cc View 1 2 3 4 5 6 7 7 chunks +101 lines, -8 lines 0 comments Download

Messages

Total messages: 35 (12 generated)
msu.koo
Please take a look, and let me know your comments. :)
5 years, 4 months ago (2015-08-24 06:06:08 UTC) #2
ajose
Looks good! I think right now only the mailbox_holder.mailbox.IsZero() path of OnBufferReceieved is being tested, ...
5 years, 4 months ago (2015-08-24 17:46:31 UTC) #3
mcasas
https://codereview.chromium.org/1314483003/diff/20001/content/renderer/media/video_capture_impl_unittest.cc File content/renderer/media/video_capture_impl_unittest.cc (right): https://codereview.chromium.org/1314483003/diff/20001/content/renderer/media/video_capture_impl_unittest.cc#newcode38 content/renderer/media/video_capture_impl_unittest.cc:38: class MockVideoCaptureImpl : public VideoCaptureImpl { This is odd: ...
5 years, 4 months ago (2015-08-25 00:14:58 UTC) #4
msu.koo
Thank you for your valuable comments. I addressed your comments and left my opinions. Please ...
5 years, 4 months ago (2015-08-25 00:45:23 UTC) #5
mcasas
https://codereview.chromium.org/1314483003/diff/40001/content/renderer/media/video_capture_impl_unittest.cc File content/renderer/media/video_capture_impl_unittest.cc (right): https://codereview.chromium.org/1314483003/diff/40001/content/renderer/media/video_capture_impl_unittest.cc#newcode110 content/renderer/media/video_capture_impl_unittest.cc:110: const int GetReceivedBufferCounts() { Fits in one line, and ...
5 years, 4 months ago (2015-08-25 16:43:46 UTC) #6
msu.koo
Thank you for your review. You comment are addressed on this patch. PTAL https://codereview.chromium.org/1314483003/diff/40001/content/renderer/media/video_capture_impl_unittest.cc File ...
5 years, 4 months ago (2015-08-26 06:52:48 UTC) #7
msu.koo
Could you take a look on this patchset?
5 years, 3 months ago (2015-08-29 09:40:17 UTC) #8
mcasas
Almost there. A few comments. https://codereview.chromium.org/1314483003/diff/60001/content/renderer/media/video_capture_impl_unittest.cc File content/renderer/media/video_capture_impl_unittest.cc (right): https://codereview.chromium.org/1314483003/diff/60001/content/renderer/media/video_capture_impl_unittest.cc#newcode53 content/renderer/media/video_capture_impl_unittest.cc:53: }; Prefer struct Bla ...
5 years, 3 months ago (2015-08-31 17:33:26 UTC) #9
msu.koo
PTAL :) https://codereview.chromium.org/1314483003/diff/60001/content/renderer/media/video_capture_impl_unittest.cc File content/renderer/media/video_capture_impl_unittest.cc (right): https://codereview.chromium.org/1314483003/diff/60001/content/renderer/media/video_capture_impl_unittest.cc#newcode53 content/renderer/media/video_capture_impl_unittest.cc:53: }; On 2015/08/31 17:33:26, mcasas wrote: > ...
5 years, 3 months ago (2015-09-01 05:25:01 UTC) #11
mcasas
LGTM % comments below https://codereview.chromium.org/1314483003/diff/60001/content/renderer/media/video_capture_impl_unittest.cc File content/renderer/media/video_capture_impl_unittest.cc (right): https://codereview.chromium.org/1314483003/diff/60001/content/renderer/media/video_capture_impl_unittest.cc#newcode56 content/renderer/media/video_capture_impl_unittest.cc:56: BufferReceivedTestArg(0, media::PIXEL_FORMAT_I420, On 2015/09/01 05:25:01, ...
5 years, 3 months ago (2015-09-01 18:09:53 UTC) #12
msu.koo
Thank you for your comments. Hope this round will be final :) https://codereview.chromium.org/1314483003/diff/60001/content/renderer/media/video_capture_impl_unittest.cc File content/renderer/media/video_capture_impl_unittest.cc ...
5 years, 3 months ago (2015-09-02 08:38:10 UTC) #13
mcasas
still LGTM (see comments below). https://codereview.chromium.org/1314483003/diff/100001/content/renderer/media/video_capture_impl_unittest.cc File content/renderer/media/video_capture_impl_unittest.cc (right): https://codereview.chromium.org/1314483003/diff/100001/content/renderer/media/video_capture_impl_unittest.cc#newcode96 content/renderer/media/video_capture_impl_unittest.cc:96: void DevicePauseCapture(int device_id) {} ...
5 years, 3 months ago (2015-09-02 16:51:26 UTC) #14
ajose
On 2015/09/02 16:51:26, mcasas wrote: > still LGTM (see comments below). > > https://codereview.chromium.org/1314483003/diff/100001/content/renderer/media/video_capture_impl_unittest.cc > ...
5 years, 3 months ago (2015-09-02 17:04:18 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314483003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314483003/120001
5 years, 3 months ago (2015-09-03 01:07:07 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/93632)
5 years, 3 months ago (2015-09-03 01:24:03 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314483003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314483003/140001
5 years, 3 months ago (2015-09-05 07:49:58 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/108802)
5 years, 3 months ago (2015-09-05 08:02:58 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314483003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314483003/160001
5 years, 3 months ago (2015-09-11 04:49:34 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-11 05:26:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314483003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314483003/160001
5 years, 3 months ago (2015-09-11 05:27:52 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 3 months ago (2015-09-11 05:32:18 UTC) #33
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/393d2fca30fc7340abd7257f31b2d2884266cd1d Cr-Commit-Position: refs/heads/master@{#348337}
5 years, 3 months ago (2015-09-11 05:32:56 UTC) #34
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:19:09 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/393d2fca30fc7340abd7257f31b2d2884266cd1d
Cr-Commit-Position: refs/heads/master@{#348337}

Powered by Google App Engine
This is Rietveld 408576698