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

Unified Diff: components/test_runner/mock_web_user_media_client.cc

Issue 1448203002: Add layout tests for the audio component of MediaStream Recording. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: peter@'s comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/web_test_delegate_impl.cc ('k') | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/mock_web_user_media_client.cc
diff --git a/components/test_runner/mock_web_user_media_client.cc b/components/test_runner/mock_web_user_media_client.cc
index 7cff4c3096df63c2f1ccbac945451b40f0a0915b..3bd55e5f9f626c5aef65da18da0f0a401e6bb67d 100644
--- a/components/test_runner/mock_web_user_media_client.cc
+++ b/components/test_runner/mock_web_user_media_client.cc
@@ -165,7 +165,8 @@ void MockWebUserMediaClient::requestUserMedia(
WebVector<WebMediaStreamTrack>());
stream.setExtraData(new MockExtraData());
- if (request.audio()) {
+ if (request.audio() &&
+ !delegate_->AddMediaStreamAudioSourceAndTrack(&stream)) {
WebMediaStreamSource source;
source.initialize("MockAudioDevice#1",
WebMediaStreamSource::TypeAudio,
@@ -177,7 +178,8 @@ void MockWebUserMediaClient::requestUserMedia(
stream.addTrack(web_track);
}
- if (request.video() && !delegate_->AddMediaStreamSourceAndTrack(&stream)) {
+ if (request.video() &&
+ !delegate_->AddMediaStreamVideoSourceAndTrack(&stream)) {
WebMediaStreamSource source;
source.initialize("MockVideoDevice#1",
WebMediaStreamSource::TypeVideo,
« no previous file with comments | « components/html_viewer/web_test_delegate_impl.cc ('k') | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698