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 "chrome/test/base/chrome_test_launcher.h" | 5 #include "chrome/test/base/chrome_test_launcher.h" |
6 #include "chrome/test/base/chrome_test_suite.h" | 6 #include "chrome/test/base/chrome_test_suite.h" |
7 | 7 |
8 class ChromeBrowserTestSuite : public ChromeTestSuite { | |
9 public: | |
10 ChromeBrowserTestSuite(int argc, char** argv) : ChromeTestSuite(argc, argv) {} | |
11 | |
12 protected: | |
13 virtual bool IsBrowserTestSuite() OVERRIDE { return true; } | |
14 }; | |
15 | |
16 class ChromeBrowserTestSuiteRunner : public ChromeTestSuiteRunner { | 8 class ChromeBrowserTestSuiteRunner : public ChromeTestSuiteRunner { |
17 public: | 9 public: |
18 virtual int RunTestSuite(int argc, char** argv) OVERRIDE { | 10 virtual int RunTestSuite(int argc, char** argv) OVERRIDE { |
19 return ChromeBrowserTestSuite(argc, argv).Run(); | 11 return ChromeTestSuite(argc, argv).Run(); |
20 } | 12 } |
21 }; | 13 }; |
22 | 14 |
23 int main(int argc, char** argv) { | 15 int main(int argc, char** argv) { |
24 // Always run browser perf tests serially - parallel running would be less | 16 // Always run browser perf tests serially - parallel running would be less |
25 // deterministic and distort perf measurements. | 17 // deterministic and distort perf measurements. |
26 ChromeBrowserTestSuiteRunner runner; | 18 ChromeBrowserTestSuiteRunner runner; |
27 return LaunchChromeTests(1, &runner, argc, argv); | 19 return LaunchChromeTests(1, &runner, argc, argv); |
28 } | 20 } |
OLD | NEW |