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

Issue 2313653003: Reland of [WebRTC] A real ScreenCapturer test (Closed)

Created:
4 years, 3 months ago by Hzj_jie
Modified:
4 years, 3 months ago
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reland of [WebRTC] A real ScreenCapturer test (patchset #1 id:1 of https://codereview.webrtc.org/2310953002/ ) Reason for revert: Resubmit capturer tests Original issue's description: > Revert of [WebRTC] A real ScreenCapturer test (patchset #8 id:240001 of https://codereview.webrtc.org/2268093002/ ) > > Reason for revert: > ScreenCapturerTest.CaptureUpdatedRegion fails on Win DrMemory Full. > > Original issue's description: > > [WebRTC] A real ScreenCapturer test > > > > We do not have a real ScreenCapturer test before. And after CL 2210443002, a new > > ScreenDrawer interface is added to the code base to draw various shapes on the > > screen. This change is to use ScreenDrawer to test ScreenCapturer. Besides test > > cases, some other changes are included, > > > > 1. A WaitForPendingPaintings() function in ScreenDrawer, to wait for a > > ScreenDrawer to finish all the pending draws. This function now only sleeps 50 > > milliseconds on X11 and 100 milliseconds on Windows. > > > > 2. A Color structure to help handle a big-endian or little-endian safe color and > > provide functions to compare with DesktopFrame::data(). Both ScreenDrawer and > > DesktopFrameGenerator (in change 2202443002) can use this class to create colors > > and compare with or paint to a DesktopFrame. > > > > 3. ScreenDrawer now uses Color structure instead of uint32_t. > > > > BUG=314516 > > > > TBR=kjellander@chromium.org > > > > Committed: https://crrev.com/9d1c54ace0dc9f68da0152aa1ded2a8dba0a43ae > > Cr-Commit-Position: refs/heads/master@{#14058} > > TBR=sergeyu@chromium.org,jamiewalch@chromium.org,kjellander@chromium.org,zijiehe@chromium.org > # Not skipping CQ checks because original CL landed more than 1 days ago. > BUG=314516 > > Committed: https://crrev.com/4c44202dc348613695a4b529bbd7c9bdab6195ec > Cr-Commit-Position: refs/heads/master@{#14071} TBR=sergeyu@chromium.org,jamiewalch@chromium.org,kjellander@chromium.org,asapersson@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=644130 Committed: https://crrev.com/0f49daccbe3fc98bd791b2092fbea3a5907c7685 Cr-Commit-Position: refs/heads/master@{#14113}

Patch Set 1 #

Patch Set 2 : Update TestCaptureUpdatedRegion logic to make it more robust #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -66 lines) Patch
M webrtc/modules/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/modules/desktop_capture/rgba_color.h View 1 chunk +54 lines, -0 lines 0 comments Download
A webrtc/modules/desktop_capture/rgba_color.cc View 1 chunk +48 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_unittest.cc View 1 9 chunks +166 lines, -16 lines 1 comment Download
M webrtc/modules/desktop_capture/screen_drawer.h View 1 chunk +19 lines, -9 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer_linux.cc View 1 5 chunks +52 lines, -24 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer_unittest.cc View 1 3 chunks +10 lines, -5 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer_win.cc View 1 5 chunks +58 lines, -12 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
Hzj_jie
Created Reland of [WebRTC] A real ScreenCapturer test
4 years, 3 months ago (2016-09-05 21:25:25 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2313653003/1
4 years, 3 months ago (2016-09-05 21:25:37 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 3 months ago (2016-09-05 21:25:38 UTC) #5
Hzj_jie
4 years, 3 months ago (2016-09-06 01:36:34 UTC) #11
kjellander_webrtc
lgtm (the dr memory full error is a different error, which I'll suppress in a ...
4 years, 3 months ago (2016-09-06 05:31:41 UTC) #13
Hzj_jie
On 2016/09/06 05:31:41, kjellander_webrtc wrote: > lgtm (the dr memory full error is a different ...
4 years, 3 months ago (2016-09-06 19:07:44 UTC) #14
Hzj_jie
On 2016/09/06 19:07:44, Hzj_jie wrote: > On 2016/09/06 05:31:41, kjellander_webrtc wrote: > > lgtm (the ...
4 years, 3 months ago (2016-09-06 22:19:59 UTC) #15
Sergey Ulanov
When relanding a reverted change the normal practice is to reopen the original CR issue ...
4 years, 3 months ago (2016-09-06 23:34:19 UTC) #16
Hzj_jie
On 2016/09/06 23:34:19, Sergey Ulanov wrote: > When relanding a reverted change the normal practice ...
4 years, 3 months ago (2016-09-06 23:37:26 UTC) #17
kjellander_chromium
On 2016/09/06 23:37:26, Hzj_jie wrote: > On 2016/09/06 23:34:19, Sergey Ulanov wrote: > > When ...
4 years, 3 months ago (2016-09-07 05:22:17 UTC) #18
Hzj_jie
On 2016/09/07 05:22:17, kjellander_chromium wrote: > On 2016/09/06 23:37:26, Hzj_jie wrote: > > On 2016/09/06 ...
4 years, 3 months ago (2016-09-07 18:51:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2313653003/200002
4 years, 3 months ago (2016-09-07 18:52:19 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:200002)
4 years, 3 months ago (2016-09-07 18:52:28 UTC) #23
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/0f49daccbe3fc98bd791b2092fbea3a5907c7685 Cr-Commit-Position: refs/heads/master@{#14113}
4 years, 3 months ago (2016-09-07 18:52:34 UTC) #25
stefan-webrtc
https://codereview.webrtc.org/2313653003/diff/200002/webrtc/modules/desktop_capture/screen_capturer_unittest.cc File webrtc/modules/desktop_capture/screen_capturer_unittest.cc (right): https://codereview.webrtc.org/2313653003/diff/200002/webrtc/modules/desktop_capture/screen_capturer_unittest.cc#newcode260 webrtc/modules/desktop_capture/screen_capturer_unittest.cc:260: } I'm not sure we want to add tests ...
4 years, 3 months ago (2016-09-14 15:37:09 UTC) #27
kjellander_webrtc
4 years, 3 months ago (2016-09-15 11:43:17 UTC) #28
Message was sent while issue was closed.
On 2016/09/14 15:37:09, stefan-webrtc (holmer) wrote:
>
https://codereview.webrtc.org/2313653003/diff/200002/webrtc/modules/desktop_c...
> File webrtc/modules/desktop_capture/screen_capturer_unittest.cc (right):
> 
>
https://codereview.webrtc.org/2313653003/diff/200002/webrtc/modules/desktop_c...
> webrtc/modules/desktop_capture/screen_capturer_unittest.cc:260: }
> I'm not sure we want to add tests to modules_unittests which render things on
> the screen. If nothing else, it's annoying when you run tests locally, but it
> also seems to run for a longer time than what I think is acceptible for a
> unittest (10 seconds on my machine). Can we at least move it to modules_tests?

I agree with Stefan, the unittests target should generally only be for the
lower-level, really quick tests. Launching a windows and rendering things on the
screen shouldn't be in there IMHO. Stefan's suggestion of moving into
modules_tests sounds like a good first step. 

Please loop me in as reviewer on future test related CLs for this component.

Powered by Google App Engine
This is Rietveld 408576698