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

Issue 2190523004: ImageCapture: content_browsertest WebRtcImageCaptureBrowserTest CreateAndGetCapabilities (Closed)

Created:
4 years, 4 months ago by mcasas
Modified:
4 years, 4 months ago
CC:
chromium-reviews, phoglund+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, tnakamura+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: add WebRtcImageCaptureBrowserTest content_browsertest This CL adds a content_browsertest for ImageCapture: WebRtcImageCaptureBrowserTest, with one test case, CreateAndGetCapabilities, that is parameterized to exercise the FakeVideoCaptureDevice and, in the very near future, the system's device if implemented (i.e., Android). WebRtcImageCaptureBrowserTest needs access to the physical webcam, but in general content_browsertests are always using the Fake. WebRtcWebcamBrowserTest has the necessary infrastructure to do this, so it's made public and reused as base class for the former. Also, this CL moves content/test/webrtc_content_browsertest_base.{cc,h} to content/browser/media/webrtc/ since they are purely internal to content_browsertests. BUG=627537, 518807 TEST=new content_browsertests WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0 (all platforms) Committed: https://crrev.com/13c7a2dfcd26e94f607a169de86b937fa21fb236 Cr-Commit-Position: refs/heads/master@{#408690}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Removed test entry for real-world capture device, leaving just FakeVCD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -198 lines) Patch
M content/browser/media/capture/image_capture_impl.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc/webrtc_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc/webrtc_browsertest_audio.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc/webrtc_browsertest_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc/webrtc_capture_from_element_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + content/browser/media/webrtc/webrtc_content_browsertest_base.h View 2 chunks +5 lines, -0 lines 0 comments Download
A + content/browser/media/webrtc/webrtc_content_browsertest_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc/webrtc_datachannel_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc/webrtc_getusermedia_browsertest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
A content/browser/media/webrtc/webrtc_image_capture_browsertest.cc View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
M content/browser/media/webrtc/webrtc_ip_permissions_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/webrtc/webrtc_media_recorder_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
A content/browser/media/webrtc/webrtc_webcam_browsertest.h View 1 chunk +35 lines, -0 lines 0 comments Download
M content/browser/media/webrtc/webrtc_webcam_browsertest.cc View 2 chunks +20 lines, -24 lines 0 comments Download
M content/content_tests.gypi View 1 2 chunks +5 lines, -3 lines 0 comments Download
A content/test/data/media/image_capture_test.html View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
D content/test/webrtc_content_browsertest_base.h View 1 chunk +0 lines, -47 lines 0 comments Download
D content/test/webrtc_content_browsertest_base.cc View 1 chunk +0 lines, -114 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
mcasas
phoglund@ PTAL
4 years, 4 months ago (2016-07-27 23:40:50 UTC) #8
phoglund_chromium
https://codereview.chromium.org/2190523004/diff/60001/content/test/data/media/image_capture_test.html File content/test/data/media/image_capture_test.html (right): https://codereview.chromium.org/2190523004/diff/60001/content/test/data/media/image_capture_test.html#newcode39 content/test/data/media/image_capture_test.html:39: // construction in its own thread. Need to wait ...
4 years, 4 months ago (2016-07-28 14:07:50 UTC) #13
mcasas
phoglund@ PTAL https://codereview.chromium.org/2190523004/diff/60001/content/test/data/media/image_capture_test.html File content/test/data/media/image_capture_test.html (right): https://codereview.chromium.org/2190523004/diff/60001/content/test/data/media/image_capture_test.html#newcode39 content/test/data/media/image_capture_test.html:39: // construction in its own thread. Need ...
4 years, 4 months ago (2016-07-29 00:00:50 UTC) #17
phoglund_chromium
Sure. I had no other remarks so lgtm.
4 years, 4 months ago (2016-07-29 06:53:31 UTC) #18
mcasas
sergeyu@: content/browser/media/capture/image_capture_impl.cc plz avi@: RS moving content/test/webrtc_content_browsertest_base.{cc,h} to a more contained folder please.
4 years, 4 months ago (2016-07-29 16:06:16 UTC) #20
Avi (use Gerrit)
lgtm move stamp
4 years, 4 months ago (2016-07-29 16:13:16 UTC) #23
Sergey Ulanov
lgtm
4 years, 4 months ago (2016-07-29 16:44:00 UTC) #24
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/2190523004/120001
4 years, 4 months ago (2016-07-29 17:17:25 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 4 months ago (2016-07-29 18:15:23 UTC) #29
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/13c7a2dfcd26e94f607a169de86b937fa21fb236 Cr-Commit-Position: refs/heads/master@{#408690}
4 years, 4 months ago (2016-07-29 18:16:35 UTC) #31
Guido Urdaneta
4 years, 4 months ago (2016-08-01 10:20:49 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:120001) has been created in
https://codereview.chromium.org/2197143002/ by guidou@chromium.org.

The reason for reverting is: This test is failing very frequently on some WebRTC
Windows Tester bots.

See
https://build.chromium.org/p/chromium.webrtc/builders/Win8%20Tester/builds/27190

https://build.chromium.org/p/chromium.webrtc.fyi/builders/Win7%20Tester/build...

Sample failure:
[ RUN      ] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0
[5124:280:0729/121801:1241877:ERROR:singleton_hwnd.cc(34)] Cannot create windows
on non-UI thread!
e:\b\c\b\win_builder\src\content\browser\media\webrtc\webrtc_image_capture_browsertest.cc(77):
error: Failed
[2992:3628:0729/121801:1242001:ERROR:node_controller.cc(1099)] Could not be
introduced to peer 37958025A53036C9.F5421BDB493A3697
[  FAILED  ] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0, where
GetParam() = 1-byte object <01> (231 ms)
[110/110] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0 (475 ms)
Retrying 1 test (retry #2)
[ RUN      ] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0
[2144:1880:0729/121801:1242360:ERROR:singleton_hwnd.cc(34)] Cannot create
windows on non-UI thread!
e:\b\c\b\win_builder\src\content\browser\media\webrtc\webrtc_image_capture_browsertest.cc(77):
error: Failed
[840:5900:0729/121801:1242469:ERROR:node_controller.cc(1099)] Could not be
introduced to peer F1D75502164167AB.19D704C0D84D5C28
[  FAILED  ] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0, where
GetParam() = 1-byte object <01> (213 ms)
[111/111] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0 (455 ms)
Retrying 1 test (retry #3)
[ RUN      ] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0
[5628:5100:0729/121801:1242813:ERROR:singleton_hwnd.cc(34)] Cannot create
windows on non-UI thread!
e:\b\c\b\win_builder\src\content\browser\media\webrtc\webrtc_image_capture_browsertest.cc(77):
error: Failed
[5096:5328:0729/121802:1242937:ERROR:node_controller.cc(1099)] Could not be
introduced to peer 9CA25151C497950C.94F1247A9239863C
[  FAILED  ] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0, where
GetParam() = 1-byte object <01> (199 ms)
[112/112] WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0 (515 ms)
1 test failed:
    WebRtcImageCaptureBrowserTest.CreateAndGetCapabilities/0
(e:\b\c\b\win_builder\src\content\browser\media\webrtc\webrtc_image_capture_browsertest.cc:67).

Powered by Google App Engine
This is Rietveld 408576698