Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / test / perf / perf_ui_test_suite.h
blobcaa8903bc4b0ce151bc2997b433746693008946e
1 // Copyright (c) 2013 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.
5 #ifndef CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_
6 #define CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_
8 #include "base/files/scoped_temp_dir.h"
9 #include "chrome/test/ui/ui_test_suite.h"
11 namespace base {
12 class FilePath;
15 // UITestSuite which creates two testing profiles at Initialize() time. We
16 // create fake profiles so we don't commit 10-20 megabytes of binary data to
17 // the repository each time we change the history format (or even worse, don't
18 // update the test profiles and have incorrect performance data!)
19 class PerfUITestSuite : public UITestSuite {
20 public:
21 PerfUITestSuite(int argc, char** argv);
22 virtual ~PerfUITestSuite();
24 // Profile theme type choices.
25 enum ProfileType {
26 DEFAULT_THEME = 0,
27 COMPLEX_THEME = 1,
30 // Returns the directory name where the "typical" user data is that we use
31 // for testing.
32 static base::FilePath GetPathForProfileType(ProfileType profile_type);
34 // Overridden from UITestSuite:
35 virtual void Initialize() OVERRIDE;
37 private:
38 // Builds a "Cached Theme.pak" file in |extension_base|.
39 void BuildCachedThemePakIn(const base::FilePath& extension_base);
41 base::ScopedTempDir default_profile_dir_;
42 base::ScopedTempDir complex_profile_dir_;
45 #endif // CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_