blob: 707e030dc10500a24379d63ea89ffef5b5812472 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
#define CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
#pragma once
#include <string>
#include "base/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/test/test_suite.h"
#if defined(OS_WIN)
#include "ui/base/win/scoped_ole_initializer.h"
#endif
namespace base {
class StatsTable;
}
class ChromeTestSuite : public base::TestSuite {
public:
// Make the browser_test binary launch as a regular browser.
static const char kLaunchAsBrowser[];
ChromeTestSuite(int argc, char** argv);
virtual ~ChromeTestSuite();
protected:
virtual void Initialize() OVERRIDE;
virtual void Shutdown() OVERRIDE;
void SetBrowserDirectory(const FilePath& browser_dir) {
browser_dir_ = browser_dir;
}
// Alternative path to browser binaries.
FilePath browser_dir_;
std::string stats_filename_;
scoped_ptr<base::StatsTable> stats_table_;
#if defined(OS_WIN)
ui::ScopedOleInitializer ole_initializer_;
#endif
};
#endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
|