| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 base::ScopedTempDir temp_working_dir_; | 337 base::ScopedTempDir temp_working_dir_; |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 INSTANTIATE_TEST_CASE_P( | 340 INSTANTIATE_TEST_CASE_P( |
| 341 WebRtcVideoQualityBrowserTests, | 341 WebRtcVideoQualityBrowserTests, |
| 342 WebRtcVideoQualityBrowserTest, | 342 WebRtcVideoQualityBrowserTest, |
| 343 testing::ValuesIn(kVideoConfigurations)); | 343 testing::ValuesIn(kVideoConfigurations)); |
| 344 | 344 |
| 345 IN_PROC_BROWSER_TEST_P(WebRtcVideoQualityBrowserTest, | 345 IN_PROC_BROWSER_TEST_P(WebRtcVideoQualityBrowserTest, |
| 346 MANUAL_TestVideoQualityVp8) { | 346 MANUAL_TestVideoQualityVp8) { |
| 347 // Disable these tests until crbug.com/711400 is addressed. | |
| 348 #if defined(OS_MACOSX) | |
| 349 return; | |
| 350 #endif // defined(OS_MACOSX) | |
| 351 TestVideoQuality("VP8"); | 347 TestVideoQuality("VP8"); |
| 352 } | 348 } |
| 353 | 349 |
| 354 IN_PROC_BROWSER_TEST_P(WebRtcVideoQualityBrowserTest, | 350 IN_PROC_BROWSER_TEST_P(WebRtcVideoQualityBrowserTest, |
| 355 MANUAL_TestVideoQualityVp9) { | 351 MANUAL_TestVideoQualityVp9) { |
| 356 // Disable these tests until crbug.com/711400 is addressed. | |
| 357 #if defined(OS_MACOSX) | |
| 358 return; | |
| 359 #endif // defined(OS_MACOSX) | |
| 360 TestVideoQuality("VP9"); | 352 TestVideoQuality("VP9"); |
| 361 } | 353 } |
| 362 | 354 |
| 363 #if BUILDFLAG(RTC_USE_H264) | 355 #if BUILDFLAG(RTC_USE_H264) |
| 364 | 356 |
| 365 IN_PROC_BROWSER_TEST_P(WebRtcVideoQualityBrowserTest, | 357 IN_PROC_BROWSER_TEST_P(WebRtcVideoQualityBrowserTest, |
| 366 MANUAL_TestVideoQualityH264) { | 358 MANUAL_TestVideoQualityH264) { |
| 367 // Disable these tests until crbug.com/711400 is addressed. | |
| 368 #if defined(OS_MACOSX) | |
| 369 return; | |
| 370 #endif // defined(OS_MACOSX) | |
| 371 // Only run test if run-time feature corresponding to |rtc_use_h264| is on. | 359 // Only run test if run-time feature corresponding to |rtc_use_h264| is on. |
| 372 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { | 360 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { |
| 373 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " | 361 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " |
| 374 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " | 362 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " |
| 375 "(test \"OK\")"; | 363 "(test \"OK\")"; |
| 376 return; | 364 return; |
| 377 } | 365 } |
| 378 TestVideoQuality("H264"); | 366 TestVideoQuality("H264"); |
| 379 } | 367 } |
| 380 | 368 |
| 381 #endif // BUILDFLAG(RTC_USE_H264) | 369 #endif // BUILDFLAG(RTC_USE_H264) |
| OLD | NEW |