- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / base / chrome_test_suite.h
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
6 #define CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
7
8 #include <string>
9
10 #include "base/files/file_path.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/test/content_test_suite_base.h"
13
14 namespace base {
15 class StatsTable;
16 }
17
18 class ChromeTestSuite : public content::ContentTestSuiteBase {
19  public:
20   ChromeTestSuite(int argc, char** argv);
21   virtual ~ChromeTestSuite();
22
23  protected:
24   virtual void Initialize() OVERRIDE;
25   virtual void Shutdown() OVERRIDE;
26
27   virtual content::ContentClient* CreateClientForInitialization() OVERRIDE;
28
29   void SetBrowserDirectory(const base::FilePath& browser_dir) {
30     browser_dir_ = browser_dir;
31   }
32
33   // Alternative path to browser binaries.
34   base::FilePath browser_dir_;
35
36   std::string stats_filename_;
37   scoped_ptr<base::StatsTable> stats_table_;
38 };
39
40 #endif  // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_