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

Unified Diff: chrome/test/perf/generate_profile.h

Issue 14273023: Rebuild test history databases when starting up performance_ui_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Speed up profile generation Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/perf/generate_profile.h
diff --git a/chrome/test/perf/generate_profile.h b/chrome/test/perf/generate_profile.h
new file mode 100644
index 0000000000000000000000000000000000000000..47b8288dccf21b2d2818ff5b214c08bc4ac7b551
--- /dev/null
+++ b/chrome/test/perf/generate_profile.h
@@ -0,0 +1,25 @@
+// 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_GENERATE_PROFILE_H_
+#define CHROME_TEST_PERF_GENERATE_PROFILE_H_
+
+namespace base {
+class FilePath;
+}
+
+// Addition types data can be generated for. By default only urls/visits are
+// added.
+enum GenerateProfileTypes {
+ TOP_SITES = 1 << 0,
+ FULL_TEXT = 1 << 1
+};
+
+// Generates a user profile and history by randomly generating data and feeding
Randy Smith (Not in Mondays) 2013/04/29 18:49:13 I'm made nervous by the word "randomly" in here--a
+// it to the history service. Returns true if successful.
+bool GenerateProfile(GenerateProfileTypes types,
+ int urlcount,
+ const base::FilePath& dst_dir);
Paweł Hajdan Jr. 2013/04/26 23:19:32 nit: Add WARN_UNUSED_RESULT from base/compiler_spe
+
+#endif // CHROME_TEST_PERF_GENERATE_PROFILE_H_

Powered by Google App Engine
This is Rietveld 408576698