Index: chrome/test/perf/perf_ui_test_suite.h |
diff --git a/chrome/test/perf/perf_ui_test_suite.h b/chrome/test/perf/perf_ui_test_suite.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..caa8903bc4b0ce151bc2997b433746693008946e |
--- /dev/null |
+++ b/chrome/test/perf/perf_ui_test_suite.h |
@@ -0,0 +1,45 @@ |
+// Copyright (c) 2013 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_PERF_PERF_UI_TEST_SUITE_H_ |
+#define CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_ |
+ |
+#include "base/files/scoped_temp_dir.h" |
+#include "chrome/test/ui/ui_test_suite.h" |
+ |
+namespace base { |
+class FilePath; |
+} |
+ |
+// UITestSuite which creates two testing profiles at Initialize() time. We |
+// create fake profiles so we don't commit 10-20 megabytes of binary data to |
+// the repository each time we change the history format (or even worse, don't |
+// update the test profiles and have incorrect performance data!) |
+class PerfUITestSuite : public UITestSuite { |
+ public: |
+ PerfUITestSuite(int argc, char** argv); |
+ virtual ~PerfUITestSuite(); |
+ |
+ // Profile theme type choices. |
+ enum ProfileType { |
+ DEFAULT_THEME = 0, |
+ COMPLEX_THEME = 1, |
+ }; |
+ |
+ // Returns the directory name where the "typical" user data is that we use |
+ // for testing. |
+ static base::FilePath GetPathForProfileType(ProfileType profile_type); |
+ |
+ // Overridden from UITestSuite: |
+ virtual void Initialize() OVERRIDE; |
+ |
+ private: |
+ // Builds a "Cached Theme.pak" file in |extension_base|. |
+ void BuildCachedThemePakIn(const base::FilePath& extension_base); |
+ |
+ base::ScopedTempDir default_profile_dir_; |
+ base::ScopedTempDir complex_profile_dir_; |
+}; |
+ |
+#endif // CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_ |