Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: chrome/browser/media/chrome_webrtc_video_quality_browsertest.cc

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/base64.h" 5 #include "base/base64.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/environment.h" 7 #include "base/environment.h"
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // test also runs a stand alone Python implementation of a WebSocket server 95 // test also runs a stand alone Python implementation of a WebSocket server
96 // (pywebsocket) and a barcode_decoder script. 96 // (pywebsocket) and a barcode_decoder script.
97 class WebRtcVideoQualityBrowserTest : public WebRtcTestBase, 97 class WebRtcVideoQualityBrowserTest : public WebRtcTestBase,
98 public testing::WithParamInterface<VideoQualityTestConfig> { 98 public testing::WithParamInterface<VideoQualityTestConfig> {
99 public: 99 public:
100 WebRtcVideoQualityBrowserTest() 100 WebRtcVideoQualityBrowserTest()
101 : environment_(base::Environment::Create()) { 101 : environment_(base::Environment::Create()) {
102 test_config_ = GetParam(); 102 test_config_ = GetParam();
103 } 103 }
104 104
105 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 105 virtual void SetUpInProcessBrowserTestFixture() override {
106 DetectErrorsInJavaScript(); // Look for errors in our rather complex js. 106 DetectErrorsInJavaScript(); // Look for errors in our rather complex js.
107 107
108 ASSERT_TRUE(temp_working_dir_.CreateUniqueTempDir()); 108 ASSERT_TRUE(temp_working_dir_.CreateUniqueTempDir());
109 } 109 }
110 110
111 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 111 virtual void SetUpCommandLine(CommandLine* command_line) override {
112 // Set up the command line option with the expected file name. We will check 112 // Set up the command line option with the expected file name. We will check
113 // its existence in HasAllRequiredResources(). 113 // its existence in HasAllRequiredResources().
114 webrtc_reference_video_y4m_ = test::GetReferenceFilesDir() 114 webrtc_reference_video_y4m_ = test::GetReferenceFilesDir()
115 .Append(test_config_.reference_video) 115 .Append(test_config_.reference_video)
116 .AddExtension(test::kY4mFileExtension); 116 .AddExtension(test::kY4mFileExtension);
117 command_line->AppendSwitchPath(switches::kUseFileForFakeVideoCapture, 117 command_line->AppendSwitchPath(switches::kUseFileForFakeVideoCapture,
118 webrtc_reference_video_y4m_); 118 webrtc_reference_video_y4m_);
119 command_line->AppendSwitch(switches::kUseFakeDeviceForMediaStream); 119 command_line->AppendSwitch(switches::kUseFakeDeviceForMediaStream);
120 120
121 // The video playback will not work without a GPU, so force its use here. 121 // The video playback will not work without a GPU, so force its use here.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 ASSERT_TRUE(CompareVideosAndPrintResult( 326 ASSERT_TRUE(CompareVideosAndPrintResult(
327 test_config_.test_name, 327 test_config_.test_name,
328 test_config_.width, 328 test_config_.width,
329 test_config_.height, 329 test_config_.height,
330 GetWorkingDir().Append(kCapturedYuvFileName), 330 GetWorkingDir().Append(kCapturedYuvFileName),
331 test::GetReferenceFilesDir() 331 test::GetReferenceFilesDir()
332 .Append(test_config_.reference_video) 332 .Append(test_config_.reference_video)
333 .AddExtension(test::kYuvFileExtension), 333 .AddExtension(test::kYuvFileExtension),
334 GetWorkingDir().Append(kStatsFileName))); 334 GetWorkingDir().Append(kStatsFileName)));
335 } 335 }
OLDNEW
« no previous file with comments | « chrome/browser/media/chrome_webrtc_perf_browsertest.cc ('k') | chrome/browser/media/chrome_webrtc_webcam_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698