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

Side by Side Diff: content/browser/webrtc/webrtc_media_recorder_browsertest.cc

Issue 2757793002: Add transparent video input test for WebRtcMediaRecorderBrowserTest (Closed)
Patch Set: Created 3 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/test/data/media/mediarecorder_test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/webrtc/webrtc_content_browsertest_base.h" 9 #include "content/browser/webrtc/webrtc_content_browsertest_base.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, IllegalPauseThrowsDOMError) { 119 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, IllegalPauseThrowsDOMError) {
120 MakeTypicalCall("testIllegalPauseThrowsDOMError();", kMediaRecorderHtmlFile); 120 MakeTypicalCall("testIllegalPauseThrowsDOMError();", kMediaRecorderHtmlFile);
121 } 121 }
122 122
123 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, TwoChannelAudioRecording) { 123 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, TwoChannelAudioRecording) {
124 MakeTypicalCall("testTwoChannelAudio();", kMediaRecorderHtmlFile); 124 MakeTypicalCall("testTwoChannelAudio();", kMediaRecorderHtmlFile);
125 } 125 }
126 126
127 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest, ResizeVideoInput) { 127 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest, RecordWithTransparency) {
128 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator); 128 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator);
129 MakeTypicalCall(base::StringPrintf("testResizeVideoInput(\"%s\");", 129 MakeTypicalCall(base::StringPrintf("testRecordWithTransparency(\"%s\");",
130 GetParam().mime_type.c_str()), 130 GetParam().mime_type.c_str()),
131 kMediaRecorderHtmlFile); 131 kMediaRecorderHtmlFile);
132 } 132 }
133 133
134 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, IllegalStopThrowsDOMError) { 134 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, IllegalStopThrowsDOMError) {
135 MakeTypicalCall("testIllegalStopThrowsDOMError();", kMediaRecorderHtmlFile); 135 MakeTypicalCall("testIllegalStopThrowsDOMError();", kMediaRecorderHtmlFile);
136 } 136 }
137 137
138 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, 138 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest,
139 IllegalStartWhileRecordingThrowsDOMError) { 139 IllegalStartWhileRecordingThrowsDOMError) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 RemovingTrackFromMediaStreamFiresErrorEvent) { 181 RemovingTrackFromMediaStreamFiresErrorEvent) {
182 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();", 182 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();",
183 kMediaRecorderHtmlFile); 183 kMediaRecorderHtmlFile);
184 } 184 }
185 185
186 INSTANTIATE_TEST_CASE_P(, 186 INSTANTIATE_TEST_CASE_P(,
187 WebRtcMediaRecorderTest, 187 WebRtcMediaRecorderTest,
188 testing::ValuesIn(kEncodingParameters)); 188 testing::ValuesIn(kEncodingParameters));
189 189
190 } // namespace content 190 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/data/media/mediarecorder_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698