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

Issue 8887004: add components for integration test which will detect breakage of media pipeline with video captu... (Closed)

Created:
9 years ago by wjia(left Chromium)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, darin-cc_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

add components for integration test which will detect breakage of media pipeline with video capture as video decoder. This patch does NOT depend on the WebKit patch (https://bugs.webkit.org/show_bug.cgi?id=74882) any longer, since a utility class MediaStreamUtil has been added in webkit_support. On the opposite, that WebKit patch depends on this one. There are 2 API's for webkit_support::CreateMediaPlayer in order to be backward compatible with WebKit. Once WebKit patch is landed, the old API (with 2 arguments) can be removed. In that WebKit patch, WebViewHost uses WebKit::WebUserMediaClientMock to return a userMediaClient. A mocked webkit_media::MediaStreamClient is used in webkit_support::CreateMediaPlayer. BUG=none TEST=run video-capture-preview.html Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116749

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : ready #

Patch Set 4 : '' #

Patch Set 5 : corresponding change with webkit patch #

Total comments: 30

Patch Set 6 : code review #

Patch Set 7 : remove dependency on WebKit patch #

Patch Set 8 : rebase #

Total comments: 10

Patch Set 9 : code review and final #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -16 lines) Patch
A media/filters/video_frame_generator.h View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
A media/filters/video_frame_generator.cc View 1 2 3 4 5 6 7 8 1 chunk +97 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/support/test_media_stream_client.h View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A webkit/support/test_media_stream_client.cc View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
M webkit/support/webkit_support.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -3 lines 0 comments Download
M webkit/support/webkit_support.cc View 1 2 3 4 5 6 7 8 7 chunks +22 lines, -13 lines 0 comments Download
M webkit/support/webkit_support.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
wjia(left Chromium)
9 years ago (2011-12-16 01:09:47 UTC) #1
scherkus (not reviewing)
cool! http://codereview.chromium.org/8887004/diff/12004/media/video/capture/fake_capture_video_decoder.cc File media/video/capture/fake_capture_video_decoder.cc (right): http://codereview.chromium.org/8887004/diff/12004/media/video/capture/fake_capture_video_decoder.cc#newcode18 media/video/capture/fake_capture_video_decoder.cc:18: const VideoCapture::VideoCaptureCapability& capability) if you passed in a ...
9 years ago (2011-12-21 20:26:45 UTC) #2
wjia(left Chromium)
PTAL. http://codereview.chromium.org/8887004/diff/12004/media/video/capture/fake_capture_video_decoder.cc File media/video/capture/fake_capture_video_decoder.cc (right): http://codereview.chromium.org/8887004/diff/12004/media/video/capture/fake_capture_video_decoder.cc#newcode18 media/video/capture/fake_capture_video_decoder.cc:18: const VideoCapture::VideoCaptureCapability& capability) On 2011/12/21 20:26:45, scherkus wrote: ...
8 years, 11 months ago (2012-01-03 17:08:12 UTC) #3
wjia(left Chromium)
+ @tkent for webkit/support.
8 years, 11 months ago (2012-01-05 23:56:47 UTC) #4
tkent
LGTM for webkit/support.
8 years, 11 months ago (2012-01-06 02:03:14 UTC) #5
acolwell GONE FROM CHROMIUM
LGTM w/ nits http://codereview.chromium.org/8887004/diff/45002/media/filters/video_frame_generator.cc File media/filters/video_frame_generator.cc (right): http://codereview.chromium.org/8887004/diff/45002/media/filters/video_frame_generator.cc#newcode10 media/filters/video_frame_generator.cc:10: #include "media/base/filter_host.h" nit: I don't think ...
8 years, 11 months ago (2012-01-06 18:09:16 UTC) #6
wjia(left Chromium)
8 years, 11 months ago (2012-01-06 22:18:59 UTC) #7
http://codereview.chromium.org/8887004/diff/45002/media/filters/video_frame_g...
File media/filters/video_frame_generator.cc (right):

http://codereview.chromium.org/8887004/diff/45002/media/filters/video_frame_g...
media/filters/video_frame_generator.cc:10: #include "media/base/filter_host.h"
On 2012/01/06 18:09:16, acolwell wrote:
> nit: I don't think this include is needed.

Done.

http://codereview.chromium.org/8887004/diff/45002/webkit/support/test_media_s...
File webkit/support/test_media_stream_client.cc (right):

http://codereview.chromium.org/8887004/diff/45002/webkit/support/test_media_s...
webkit/support/test_media_stream_client.cc:33: if (raw_media) {
On 2012/01/06 18:09:16, acolwell wrote:
> nit: Reversing the condition and returning early will allow you to reduce the
> indent level of this code. You also don't need the local variable.

Done.

http://codereview.chromium.org/8887004/diff/45002/webkit/support/test_media_s...
File webkit/support/test_media_stream_client.h (right):

http://codereview.chromium.org/8887004/diff/45002/webkit/support/test_media_s...
webkit/support/test_media_stream_client.h:13: #include
"third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
On 2012/01/06 18:09:16, acolwell wrote:
> nit: includes should be in alphabetical order.

Done.

http://codereview.chromium.org/8887004/diff/45002/webkit/support/webkit_suppo...
File webkit/support/webkit_support.cc (right):

http://codereview.chromium.org/8887004/diff/45002/webkit/support/webkit_suppo...
webkit/support/webkit_support.cc:61: #include
"webkit/support/test_media_stream_client.h"
On 2012/01/06 18:09:16, acolwell wrote:
> nit: If you change CreateMediaPlayer() to take a MediaStreamClient, I don't
> think you'll need this.

Done.

http://codereview.chromium.org/8887004/diff/45002/webkit/support/webkit_suppo...
File webkit/support/webkit_support.h (right):

http://codereview.chromium.org/8887004/diff/45002/webkit/support/webkit_suppo...
webkit/support/webkit_support.h:71: webkit_support::TestMediaStreamClient*
test_media_stream_client);
On 2012/01/06 18:09:16, acolwell wrote:
> Is there any reason why this can't just be MediaStreamClient? It doesn't look
> like this code needs to know that it is dealing with a test implementation.

changed to MediaStreamClient.

Powered by Google App Engine
This is Rietveld 408576698