Chromium Code Reviews| 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..91454417d437740108fa111ab186e8a51ee4c59d |
| --- /dev/null |
| +++ b/chrome/test/perf/generate_profile.h |
| @@ -0,0 +1,27 @@ |
| +// 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 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); |
|
Paweł Hajdan Jr.
2013/05/06 23:46:04
nit: Add WARN_UNUSED_RESULT from base/compiler_spe
|
| + |
| +#endif // CHROME_TEST_PERF_GENERATE_PROFILE_H_ |