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

Side by Side Diff: chrome/test/ui/ui_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/pyautolib/pyautolib.cc ('k') | chrome/test/ui/ui_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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_UI_TEST_SUITE_H_ 5 #ifndef CHROME_TEST_UI_UI_TEST_SUITE_H_
6 #define CHROME_TEST_UI_UI_TEST_SUITE_H_ 6 #define CHROME_TEST_UI_UI_TEST_SUITE_H_
7 7
8 #include "base/process/process.h" 8 #include "base/process/process.h"
9 #include "chrome/test/base/chrome_test_suite.h" 9 #include "chrome/test/base/chrome_test_suite.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include "base/win/scoped_handle.h" 12 #include "base/win/scoped_handle.h"
13 #endif 13 #endif
14 14
15 class UITestSuite : public ChromeTestSuite { 15 class UITestSuite : public ChromeTestSuite {
16 public: 16 public:
17 UITestSuite(int argc, char** argv); 17 UITestSuite(int argc, char** argv);
18 18
19 protected: 19 protected:
20 virtual void Initialize() OVERRIDE; 20 virtual void Initialize() OVERRIDE;
21 virtual void Shutdown() OVERRIDE; 21 virtual void Shutdown() OVERRIDE;
22 22
23 virtual bool IsBrowserTestSuite() OVERRIDE;
24
25 private: 23 private:
26 #if defined(OS_WIN) 24 #if defined(OS_WIN)
27 void LoadCrashService(); 25 void LoadCrashService();
28 26
29 base::ProcessHandle crash_service_; 27 base::ProcessHandle crash_service_;
30 28
31 // JobObject used to clean up orphaned child processes. 29 // JobObject used to clean up orphaned child processes.
32 base::win::ScopedHandle job_handle_; 30 base::win::ScopedHandle job_handle_;
33 #endif 31 #endif
34 }; 32 };
35 33
36 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_ 34 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyautolib.cc ('k') | chrome/test/ui/ui_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698