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

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

Issue 10202005: Convert the session restore ui_tests to browser_tests. I renabled the disabled tests; hopefully the… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the mac test Created 8 years, 8 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_launcher.cc ('k') | chrome/test/base/chrome_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TEST_SUITE_H_ 5 #ifndef CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
6 #define CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ 6 #define CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/test/test_suite.h" 13 #include "base/test/test_suite.h"
14 14
15 #if defined(OS_WIN) 15 #if defined(OS_WIN)
16 #include "ui/base/win/scoped_ole_initializer.h" 16 #include "ui/base/win/scoped_ole_initializer.h"
17 #endif 17 #endif
18 18
19 namespace base { 19 namespace base {
20 class StatsTable; 20 class StatsTable;
21 } 21 }
22 22
23 class ChromeTestSuite : public base::TestSuite { 23 class ChromeTestSuite : public base::TestSuite {
24 public: 24 public:
25 // Make the browser_test binary launch as a regular browser.
26 static const char kLaunchAsBrowser[];
27
25 ChromeTestSuite(int argc, char** argv); 28 ChromeTestSuite(int argc, char** argv);
26 virtual ~ChromeTestSuite(); 29 virtual ~ChromeTestSuite();
27 30
28 protected: 31 protected:
29 virtual void Initialize() OVERRIDE; 32 virtual void Initialize() OVERRIDE;
30 virtual void Shutdown() OVERRIDE; 33 virtual void Shutdown() OVERRIDE;
31 34
32 void SetBrowserDirectory(const FilePath& browser_dir) { 35 void SetBrowserDirectory(const FilePath& browser_dir) {
33 browser_dir_ = browser_dir; 36 browser_dir_ = browser_dir;
34 } 37 }
35 38
36 // Alternative path to browser binaries. 39 // Alternative path to browser binaries.
37 FilePath browser_dir_; 40 FilePath browser_dir_;
38 41
39 std::string stats_filename_; 42 std::string stats_filename_;
40 scoped_ptr<base::StatsTable> stats_table_; 43 scoped_ptr<base::StatsTable> stats_table_;
41 44
42 #if defined(OS_WIN) 45 #if defined(OS_WIN)
43 ui::ScopedOleInitializer ole_initializer_; 46 ui::ScopedOleInitializer ole_initializer_;
44 #endif 47 #endif
45 }; 48 };
46 49
47 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ 50 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_test_launcher.cc ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698