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

Issue 2359243002: VideoCaptureDeviceTest: improve error logging (Closed)

Created:
4 years, 3 months ago by mcasas
Modified:
4 years, 3 months ago
Reviewers:
chfremer
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VideoCaptureDeviceTest: improve error logging Associated bug's #3 is a revert and got me thinking that we don't log the error received in the VCDTest's MockVideoCaptureDeviceClient's, so this CL adds a small ON_CALL for it. The difference is that, e.g. in the OpenInvalidDevice test case, we get an extra line with the error origin, message and the OS/System error message, if any. [ RUN ] VideoCaptureDeviceTest.OpenInvalidDevice [...] [58186:1295:0922/102314:1087119696054855:ERROR:video_capture_device_unittest.cc(84)] AllocateAndStart@../../media/capture/video/mac/video_capture_device_mac.mm:326 Could not open capture device.: No such file or directory BUG=647352 Committed: https://crrev.com/f5665dc8fa767fc1493e0549f4bd813e26d74dff Cr-Commit-Position: refs/heads/master@{#420423}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : chfremer@ comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M media/capture/video/video_capture_device_unittest.cc View 1 2 chunks +9 lines, -2 lines 1 comment Download

Messages

Total messages: 14 (7 generated)
mcasas
chfremer@ PTAL
4 years, 3 months ago (2016-09-22 17:26:42 UTC) #5
chfremer
https://codereview.chromium.org/2359243002/diff/20001/media/capture/video/video_capture_device_unittest.cc File media/capture/video/video_capture_device_unittest.cc (right): https://codereview.chromium.org/2359243002/diff/20001/media/capture/video/video_capture_device_unittest.cc#newcode102 media/capture/video/video_capture_device_unittest.cc:102: .WillByDefault(WithArgs<0, 1>(Invoke(DumpError))); Is the WithArgs<0, 1> really needed? It ...
4 years, 3 months ago (2016-09-22 17:44:19 UTC) #6
mcasas
https://codereview.chromium.org/2359243002/diff/20001/media/capture/video/video_capture_device_unittest.cc File media/capture/video/video_capture_device_unittest.cc (right): https://codereview.chromium.org/2359243002/diff/20001/media/capture/video/video_capture_device_unittest.cc#newcode102 media/capture/video/video_capture_device_unittest.cc:102: .WillByDefault(WithArgs<0, 1>(Invoke(DumpError))); On 2016/09/22 17:44:18, chfremer wrote: > Is ...
4 years, 3 months ago (2016-09-22 17:58:36 UTC) #7
chfremer
lgtm https://codereview.chromium.org/2359243002/diff/40001/media/capture/video/video_capture_device_unittest.cc File media/capture/video/video_capture_device_unittest.cc (right): https://codereview.chromium.org/2359243002/diff/40001/media/capture/video/video_capture_device_unittest.cc#newcode100 media/capture/video/video_capture_device_unittest.cc:100: ON_CALL(*this, OnError(_, _)).WillByDefault(Invoke(DumpError)); Sgtm. Alternatively, we could use ...
4 years, 3 months ago (2016-09-22 18:05:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359243002/40001
4 years, 3 months ago (2016-09-22 18:21:29 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-09-22 19:27:39 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 19:29:41 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f5665dc8fa767fc1493e0549f4bd813e26d74dff
Cr-Commit-Position: refs/heads/master@{#420423}

Powered by Google App Engine
This is Rietveld 408576698