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

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

Issue 9302024: Add client for background testing of HTTP pipelining. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move stats code back where it belongs Created 8 years, 10 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
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_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/metrics/histogram.h"
13 #include "base/test/test_suite.h" 14 #include "base/test/test_suite.h"
14 #include "chrome/app/scoped_ole_initializer.h" 15 #include "chrome/app/scoped_ole_initializer.h"
15 16
16 namespace base { 17 namespace base {
17 class StatsTable; 18 class StatsTable;
18 } 19 }
19 20
20 class ChromeTestSuite : public base::TestSuite { 21 class ChromeTestSuite : public base::TestSuite {
21 public: 22 public:
22 ChromeTestSuite(int argc, char** argv); 23 ChromeTestSuite(int argc, char** argv);
23 virtual ~ChromeTestSuite(); 24 virtual ~ChromeTestSuite();
24 25
25 protected: 26 protected:
26 virtual void Initialize() OVERRIDE; 27 virtual void Initialize() OVERRIDE;
27 virtual void Shutdown() OVERRIDE; 28 virtual void Shutdown() OVERRIDE;
28 29
29 void SetBrowserDirectory(const FilePath& browser_dir) { 30 void SetBrowserDirectory(const FilePath& browser_dir) {
30 browser_dir_ = browser_dir; 31 browser_dir_ = browser_dir;
31 } 32 }
32 33
33 // Alternative path to browser binaries. 34 // Alternative path to browser binaries.
34 FilePath browser_dir_; 35 FilePath browser_dir_;
35 36
36 std::string stats_filename_; 37 std::string stats_filename_;
37 scoped_ptr<base::StatsTable> stats_table_; 38 scoped_ptr<base::StatsTable> stats_table_;
38 39
39 ScopedOleInitializer ole_initializer_; 40 ScopedOleInitializer ole_initializer_;
41 base::StatisticsRecorder stats_recorder_;
40 }; 42 };
41 43
42 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_ 44 #endif // CHROME_TEST_BASE_CHROME_TEST_SUITE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698