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

Side by Side Diff: chromecast/shell/browser/test/chromecast_browser_test_runner.cc

Issue 630663003: replace OVERRIDE and FINAL with override and final in chromecast/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "base/sys_info.h" 7 #include "base/sys_info.h"
8 #include "chromecast/shell/app/cast_main_delegate.h" 8 #include "chromecast/shell/app/cast_main_delegate.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "content/public/test/content_test_suite_base.h" 10 #include "content/public/test/content_test_suite_base.h"
(...skipping 17 matching lines...) Expand all
28 28
29 private: 29 private:
30 DISALLOW_COPY_AND_ASSIGN(BrowserTestSuite); 30 DISALLOW_COPY_AND_ASSIGN(BrowserTestSuite);
31 }; 31 };
32 32
33 class ChromecastTestLauncherDelegate : public content::TestLauncherDelegate { 33 class ChromecastTestLauncherDelegate : public content::TestLauncherDelegate {
34 public: 34 public:
35 ChromecastTestLauncherDelegate() {} 35 ChromecastTestLauncherDelegate() {}
36 virtual ~ChromecastTestLauncherDelegate() {} 36 virtual ~ChromecastTestLauncherDelegate() {}
37 37
38 virtual int RunTestSuite(int argc, char** argv) OVERRIDE { 38 virtual int RunTestSuite(int argc, char** argv) override {
39 return BrowserTestSuite(argc, argv).Run(); 39 return BrowserTestSuite(argc, argv).Run();
40 } 40 }
41 41
42 virtual bool AdjustChildProcessCommandLine( 42 virtual bool AdjustChildProcessCommandLine(
43 base::CommandLine* command_line, 43 base::CommandLine* command_line,
44 const base::FilePath& temp_data_dir) OVERRIDE { 44 const base::FilePath& temp_data_dir) override {
45 // TODO(gunsch): handle temp_data_dir 45 // TODO(gunsch): handle temp_data_dir
46 command_line->AppendSwitchASCII(switches::kTestType, kTestTypeBrowser); 46 command_line->AppendSwitchASCII(switches::kTestType, kTestTypeBrowser);
47 return true; 47 return true;
48 } 48 }
49 49
50 protected: 50 protected:
51 virtual content::ContentMainDelegate* CreateContentMainDelegate() OVERRIDE { 51 virtual content::ContentMainDelegate* CreateContentMainDelegate() override {
52 return new CastMainDelegate(); 52 return new CastMainDelegate();
53 } 53 }
54 54
55 private: 55 private:
56 DISALLOW_COPY_AND_ASSIGN(ChromecastTestLauncherDelegate); 56 DISALLOW_COPY_AND_ASSIGN(ChromecastTestLauncherDelegate);
57 }; 57 };
58 58
59 } // namespace 59 } // namespace
60 60
61 } // namespace shell 61 } // namespace shell
62 } // namespace chromecast 62 } // namespace chromecast
63 63
64 int main(int argc, char** argv) { 64 int main(int argc, char** argv) {
65 int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2); 65 int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2);
66 chromecast::shell::ChromecastTestLauncherDelegate launcher_delegate; 66 chromecast::shell::ChromecastTestLauncherDelegate launcher_delegate;
67 return LaunchTests(&launcher_delegate, default_jobs, argc, argv); 67 return LaunchTests(&launcher_delegate, default_jobs, argc, argv);
68 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698