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

Unified Diff: chrome/test/perf/generate_profile.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/perf/feature_startup_test.cc ('k') | chrome/test/perf/generate_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..85a2858f39afe97134eda3e0fa2d79fc82a6220a
--- /dev/null
+++ b/chrome/test/perf/generate_profile.h
@@ -0,0 +1,29 @@
+// 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_
+
+#include "base/compiler_specific.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 psuedo-randomly generating data and
+// feeding it to the history service. (srand is initialized with whatever
+// urlcount is before profile is generated for deterministic output; it is
+// reset to time() afterwards.) Returns true if successful.
+bool GenerateProfile(GenerateProfileTypes types,
+ int urlcount,
+ const base::FilePath& dst_dir) WARN_UNUSED_RESULT;
+
+#endif // CHROME_TEST_PERF_GENERATE_PROFILE_H_
« no previous file with comments | « chrome/test/perf/feature_startup_test.cc ('k') | chrome/test/perf/generate_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698