| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 test_config_.height, GetWorkingDir().Append(kCapturedYuvFileName), | 310 test_config_.height, GetWorkingDir().Append(kCapturedYuvFileName), |
| 311 test::GetReferenceFilesDir() | 311 test::GetReferenceFilesDir() |
| 312 .Append(test_config_.reference_video) | 312 .Append(test_config_.reference_video) |
| 313 .AddExtension(test::kYuvFileExtension), | 313 .AddExtension(test::kYuvFileExtension), |
| 314 GetWorkingDir().Append(kStatsFileName))); | 314 GetWorkingDir().Append(kStatsFileName))); |
| 315 } | 315 } |
| 316 | 316 |
| 317 protected: | 317 protected: |
| 318 VideoQualityTestConfig test_config_; | 318 VideoQualityTestConfig test_config_; |
| 319 | 319 |
| 320 base::FilePath GetWorkingDir() { return temp_working_dir_.path(); } | 320 base::FilePath GetWorkingDir() { return temp_working_dir_.GetPath(); } |
| 321 | 321 |
| 322 private: | 322 private: |
| 323 base::FilePath GetSourceDir() { | 323 base::FilePath GetSourceDir() { |
| 324 base::FilePath source_dir; | 324 base::FilePath source_dir; |
| 325 PathService::Get(base::DIR_SOURCE_ROOT, &source_dir); | 325 PathService::Get(base::DIR_SOURCE_ROOT, &source_dir); |
| 326 return source_dir; | 326 return source_dir; |
| 327 } | 327 } |
| 328 | 328 |
| 329 base::FilePath GetBrowserDir() { | 329 base::FilePath GetBrowserDir() { |
| 330 base::FilePath browser_dir; | 330 base::FilePath browser_dir; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 360 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { | 360 if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { |
| 361 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " | 361 LOG(WARNING) << "Run-time feature WebRTC-H264WithOpenH264FFmpeg disabled. " |
| 362 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " | 362 "Skipping WebRtcVideoQualityBrowserTest.MANUAL_TestVideoQualityH264 " |
| 363 "(test \"OK\")"; | 363 "(test \"OK\")"; |
| 364 return; | 364 return; |
| 365 } | 365 } |
| 366 TestVideoQuality("H264"); | 366 TestVideoQuality("H264"); |
| 367 } | 367 } |
| 368 | 368 |
| 369 #endif // BUILDFLAG(RTC_USE_H264) | 369 #endif // BUILDFLAG(RTC_USE_H264) |
| OLD | NEW |