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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests: cc, skcanvas_video_renderer, wrtcrecorder... Fake capture supports Y16. Created 4 years, 2 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
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest, 71 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest,
72 MediaRecorderStartAndDataAvailable) { 72 MediaRecorderStartAndDataAvailable) {
73 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator); 73 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator);
74 MakeTypicalCall(base::StringPrintf("testStartAndDataAvailable(\"%s\");", 74 MakeTypicalCall(base::StringPrintf("testStartAndDataAvailable(\"%s\");",
75 GetParam().video_codec.c_str()), 75 GetParam().video_codec.c_str()),
76 kMediaRecorderHtmlFile); 76 kMediaRecorderHtmlFile);
77 } 77 }
78 78
79 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest,
80 MediaRecorderStartAndDataAvailableY16) {
81 // For testing Y16 path, it is sufficient to run it for one coded/acceleration
82 // combination, e.g. VP9.
83 MakeTypicalCall("testStartAndDataAvailable(\"VP9\", \"fake_device_1\");",
84 kMediaRecorderHtmlFile);
85 }
86
79 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest, 87 IN_PROC_BROWSER_TEST_P(WebRtcMediaRecorderTest,
80 MediaRecorderStartWithTimeSlice) { 88 MediaRecorderStartWithTimeSlice) {
81 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator); 89 MaybeForceDisableEncodeAccelerator(GetParam().disable_accelerator);
82 MakeTypicalCall(base::StringPrintf("testStartWithTimeSlice(\"%s\");", 90 MakeTypicalCall(base::StringPrintf("testStartWithTimeSlice(\"%s\");",
83 GetParam().video_codec.c_str()), 91 GetParam().video_codec.c_str()),
84 kMediaRecorderHtmlFile); 92 kMediaRecorderHtmlFile);
85 } 93 }
86 94
87 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, MediaRecorderResume) { 95 IN_PROC_BROWSER_TEST_F(WebRtcMediaRecorderTest, MediaRecorderResume) {
88 MakeTypicalCall("testResumeAndRecorderState();", kMediaRecorderHtmlFile); 96 MakeTypicalCall("testResumeAndRecorderState();", kMediaRecorderHtmlFile);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 RemovingTrackFromMediaStreamFiresErrorEvent) { 170 RemovingTrackFromMediaStreamFiresErrorEvent) {
163 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();", 171 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();",
164 kMediaRecorderHtmlFile); 172 kMediaRecorderHtmlFile);
165 } 173 }
166 174
167 INSTANTIATE_TEST_CASE_P(, 175 INSTANTIATE_TEST_CASE_P(,
168 WebRtcMediaRecorderTest, 176 WebRtcMediaRecorderTest,
169 testing::ValuesIn(kEncodingParameters)); 177 testing::ValuesIn(kEncodingParameters));
170 178
171 } // namespace content 179 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698