| 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 NegotiateCall(left_tab, right_tab, video_codec); | 301 if (!video_codec.empty()) { |
| 302 SetDefaultVideoCodec(left_tab, video_codec); |
| 303 SetDefaultVideoCodec(right_tab, video_codec); |
| 304 } |
| 305 NegotiateCall(left_tab, right_tab); |
| 302 | 306 |
| 303 // Poll slower here to avoid flooding the log with messages: capturing and | 307 // Poll slower here to avoid flooding the log with messages: capturing and |
| 304 // sending frames take quite a bit of time. | 308 // sending frames take quite a bit of time. |
| 305 int polling_interval_msec = 1000; | 309 int polling_interval_msec = 1000; |
| 306 | 310 |
| 307 EXPECT_TRUE(test::PollingWaitUntil("doneFrameCapturing()", "done-capturing", | 311 EXPECT_TRUE(test::PollingWaitUntil("doneFrameCapturing()", "done-capturing", |
| 308 right_tab, polling_interval_msec)); | 312 right_tab, polling_interval_msec)); |
| 309 | 313 |
| 310 HangUp(left_tab); | 314 HangUp(left_tab); |
| 311 | 315 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { | 380 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { |
| 377 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " | 381 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " |
| 378 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " | 382 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " |
| 379 "(test \"OK\")"; | 383 "(test \"OK\")"; |
| 380 return; | 384 return; |
| 381 } | 385 } |
| 382 TestVideoQuality("H264"); | 386 TestVideoQuality("H264"); |
| 383 } | 387 } |
| 384 | 388 |
| 385 #endif // BUILDFLAG(RTC_USE_H264) | 389 #endif // BUILDFLAG(RTC_USE_H264) |
| OLD | NEW |