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

Side by Side Diff: chrome/test/base/chrome_unit_test_suite.h

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
« no previous file with comments | « chrome/test/base/chrome_test_suite.cc ('k') | chrome/test/base/chrome_unit_test_suite.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_ 5 #ifndef CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_
6 #define CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_ 6 #define CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h"
10 #include "chrome/test/base/chrome_test_suite.h" 11 #include "chrome/test/base/chrome_test_suite.h"
11 12
13 namespace base {
14 class StatsTable;
15 }
16
12 // Test suite for unit tests. Creates additional stub services that are not 17 // Test suite for unit tests. Creates additional stub services that are not
13 // needed for browser tests (e.g. a TestingBrowserProcess). 18 // needed for browser tests (e.g. a TestingBrowserProcess).
14 class ChromeUnitTestSuite : public ChromeTestSuite { 19 class ChromeUnitTestSuite : public ChromeTestSuite {
15 public: 20 public:
16 ChromeUnitTestSuite(int argc, char** argv); 21 ChromeUnitTestSuite(int argc, char** argv);
17 virtual ~ChromeUnitTestSuite(); 22 virtual ~ChromeUnitTestSuite();
18 23
19 // base::TestSuite overrides: 24 // base::TestSuite overrides:
20 virtual void Initialize() OVERRIDE; 25 virtual void Initialize() OVERRIDE;
26 virtual void Shutdown() OVERRIDE;
21 27
22 // ChromeTestSuite overrides: 28 // These methods allow unit tests which run in the browser_test binary, and so
23 virtual bool IsBrowserTestSuite() OVERRIDE; 29 // which don't exercise the initialization in this test suite, to do basic
30 // setup which this class does.
31 static void InitializeProviders();
32 static void InitializeResourceBundle();
24 33
25 private: 34 private:
35 std::string stats_filename_;
36 scoped_ptr<base::StatsTable> stats_table_;
37
26 DISALLOW_COPY_AND_ASSIGN(ChromeUnitTestSuite); 38 DISALLOW_COPY_AND_ASSIGN(ChromeUnitTestSuite);
27 }; 39 };
28 40
29 #endif // CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_ 41 #endif // CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_test_suite.cc ('k') | chrome/test/base/chrome_unit_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698