| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |