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

Side by Side Diff: chrome/test/perf/perf_ui_test_suite.h

Issue 14585015: Recommit the generate profile patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Load the browser dll manually on Windows. Created 7 years, 7 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
« no previous file with comments | « chrome/test/perf/generate_profile.cc ('k') | chrome/test/perf/perf_ui_test_suite.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_
6 #define CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_
7
8 #include "base/files/scoped_temp_dir.h"
9 #include "chrome/test/ui/ui_test_suite.h"
10
11 namespace base {
12 class FilePath;
13 }
14
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();
23
24 // Profile theme type choices.
25 enum ProfileType {
26 DEFAULT_THEME = 0,
27 COMPLEX_THEME = 1,
28 };
29
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);
33
34 // Overridden from UITestSuite:
35 virtual void Initialize() OVERRIDE;
36
37 private:
38 // Builds a "Cached Theme.pak" file in |extension_base|.
39 void BuildCachedThemePakIn(const base::FilePath& extension_base);
40
41 base::ScopedTempDir default_profile_dir_;
42 base::ScopedTempDir complex_profile_dir_;
43 };
44
45 #endif // CHROME_TEST_PERF_PERF_UI_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « chrome/test/perf/generate_profile.cc ('k') | chrome/test/perf/perf_ui_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698