OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 embedded_test_server()->GetURL(kMainWebrtcTestHtmlPage), | 291 embedded_test_server()->GetURL(kMainWebrtcTestHtmlPage), |
292 test_config_.constraints); | 292 test_config_.constraints); |
293 content::WebContents* right_tab = | 293 content::WebContents* right_tab = |
294 OpenPageAndGetUserMediaInNewTabWithConstraints( | 294 OpenPageAndGetUserMediaInNewTabWithConstraints( |
295 embedded_test_server()->GetURL(kCapturingWebrtcHtmlPage), | 295 embedded_test_server()->GetURL(kCapturingWebrtcHtmlPage), |
296 test_config_.constraints); | 296 test_config_.constraints); |
297 | 297 |
298 SetupPeerconnectionWithLocalStream(left_tab); | 298 SetupPeerconnectionWithLocalStream(left_tab); |
299 SetupPeerconnectionWithLocalStream(right_tab); | 299 SetupPeerconnectionWithLocalStream(right_tab); |
300 | 300 |
301 if (!video_codec.empty()) { | 301 NegotiateCall(left_tab, right_tab, video_codec); |
302 SetDefaultVideoCodec(left_tab, video_codec); | |
303 SetDefaultVideoCodec(right_tab, video_codec); | |
304 } | |
305 NegotiateCall(left_tab, right_tab); | |
306 | 302 |
307 // Poll slower here to avoid flooding the log with messages: capturing and | 303 // Poll slower here to avoid flooding the log with messages: capturing and |
308 // sending frames take quite a bit of time. | 304 // sending frames take quite a bit of time. |
309 int polling_interval_msec = 1000; | 305 int polling_interval_msec = 1000; |
310 | 306 |
311 EXPECT_TRUE(test::PollingWaitUntil("doneFrameCapturing()", "done-capturing", | 307 EXPECT_TRUE(test::PollingWaitUntil("doneFrameCapturing()", "done-capturing", |
312 right_tab, polling_interval_msec)); | 308 right_tab, polling_interval_msec)); |
313 | 309 |
314 HangUp(left_tab); | 310 HangUp(left_tab); |
315 | 311 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { | 376 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { |
381 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " | 377 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " |
382 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " | 378 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " |
383 "(test \"OK\")"; | 379 "(test \"OK\")"; |
384 return; | 380 return; |
385 } | 381 } |
386 TestVideoQuality("H264"); | 382 TestVideoQuality("H264"); |
387 } | 383 } |
388 | 384 |
389 #endif // BUILDFLAG(RTC_USE_H264) | 385 #endif // BUILDFLAG(RTC_USE_H264) |
OLD | NEW |