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

Issue 1371373002: Extend components/test_runner's generated WebMediaStream to have a ChromeMock VideoTrack and Source (Closed)

Created:
5 years, 2 months ago by mcasas
Modified:
5 years, 2 months ago
CC:
chromium-reviews, blink-reviews, hubbe, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extend components/test_runner's generated WebMediaStream to have a ChromeMock VideoTrack and Source components/test_runner is used by Blink LayoutTest to generate a MediaStream. But this MS has only Blink-side objects, whereas some tests (e.g. MediaRecorder) need to have Chrome counterparts of those objects. This CL adds those, for video. Since components/ has a strict dependency requirement, the added code goes into a subfolder of components/test_runner. BUG=262211, 532509

Patch Set 1 : #

Total comments: 6

Patch Set 2 : mazzoni@ comments, web_view/test_runner build, rebase, cleaned up requestUserMedia() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -127 lines) Patch
M components/test_runner/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/DEPS View 1 chunk +5 lines, -0 lines 0 comments Download
M components/test_runner/mock_web_media_stream_center.cc View 5 chunks +12 lines, -9 lines 0 comments Download
M components/test_runner/mock_web_user_media_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/test_runner/mock_web_user_media_client.cc View 1 5 chunks +48 lines, -56 lines 0 comments Download
A components/test_runner/renderer/BUILD.gn View 1 1 chunk +20 lines, -0 lines 1 comment Download
A + components/test_runner/renderer/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A components/test_runner/renderer/mock_video_capturer_source.h View 1 1 chunk +18 lines, -0 lines 0 comments Download
A components/test_runner/renderer/mock_video_capturer_source.cc View 1 1 chunk +67 lines, -0 lines 0 comments Download
M components/test_runner/test_runner.gyp View 1 3 chunks +5 lines, -0 lines 0 comments Download
M content/public/renderer/media_stream_api.h View 1 2 chunks +18 lines, -6 lines 0 comments Download
M content/public/renderer/media_stream_api.cc View 1 3 chunks +45 lines, -44 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +0 lines, -8 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-basic-video-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (29 generated)
mcasas
dmazzoni@ can you have a first look at components/* ? (FYI tommyw@ is not available ...
5 years, 2 months ago (2015-09-29 23:40:29 UTC) #6
dmazzoni
lgtm test_runner code changes look fine, but I'm not an expert on the components dependency ...
5 years, 2 months ago (2015-09-30 15:23:45 UTC) #8
mcasas
avi@ can you take a look at the *DEPS* files plz?
5 years, 2 months ago (2015-09-30 15:32:59 UTC) #10
Avi (use Gerrit)
On 2015/09/30 15:32:59, mcasas wrote: > avi@ can you take a look at the *DEPS* ...
5 years, 2 months ago (2015-09-30 15:55:45 UTC) #11
mcasas
hubbe@ I touched content/public/renderer/media_stream_api.h FYI/PTAL peter@ FYI/PTAL (WebKit side change is trivial)
5 years, 2 months ago (2015-09-30 16:24:21 UTC) #12
mcasas
https://codereview.chromium.org/1371373002/diff/100001/content/public/renderer/media_stream_api.cc File content/public/renderer/media_stream_api.cc (right): https://codereview.chromium.org/1371373002/diff/100001/content/public/renderer/media_stream_api.cc#newcode96 content/public/renderer/media_stream_api.cc:96: LOG(ERROR) << "Stream not found"; On 2015/09/30 15:23:45, dmazzoni ...
5 years, 2 months ago (2015-09-30 19:14:58 UTC) #13
sadrul
+jochen@ for advice test_runner should not depend on content. content depends on, and uses, test_runner ...
5 years, 2 months ago (2015-10-06 15:23:28 UTC) #36
jochen (gone - plz use gerrit)
correct, test_runner must not depend on content (not lgtm) in this case, I'd probably add ...
5 years, 2 months ago (2015-10-07 09:38:54 UTC) #37
mcasas
5 years, 2 months ago (2015-10-07 20:42:18 UTC) #38
On 2015/10/07 09:38:54, jochen wrote:
> correct, test_runner must not depend on content (not lgtm)
> 
> in this case, I'd probably add a callback to WebTestDelegate that the mock
video
> capture source can invoke. content shell can then use the new content API you
> added to add the stream. the html_viewer would probably just ignore that
> callback for now

Thanks jochen@, I made https://crrev.com/1391363002
with that idea. Closing this CL then, thanks everyone!

Powered by Google App Engine
This is Rietveld 408576698