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

Side by Side Diff: chrome/test/base/browser_perf_tests_main.cc

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 years, 9 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 | Annotate | Revision Log
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 "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 }
OLDNEW
« no previous file with comments | « chrome/renderer/translate/translate_script_browsertest.cc ('k') | chrome/test/base/browser_tests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698