Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 ChromeTestSuite(int argc, char** argv); | 25 ChromeTestSuite(int argc, char** argv); |
| 26 virtual ~ChromeTestSuite(); | 26 virtual ~ChromeTestSuite(); |
| 27 | 27 |
| 28 // Make the browser_test binary launch as a regular browser. | |
| 29 static const char kLaunchAsBrowser[]; | |
|
sky
2012/04/24 16:00:06
nit: static consts before constructor.
| |
| 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_ |
| OLD | NEW |