OLD | NEW |
---|---|
(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_GENERATE_PROFILE_H_ | |
6 #define CHROME_TEST_PERF_GENERATE_PROFILE_H_ | |
7 | |
8 namespace base { | |
9 class FilePath; | |
10 } | |
11 | |
12 // Addition types data can be generated for. By default only urls/visits are | |
13 // added. | |
14 enum GenerateProfileTypes { | |
15 TOP_SITES = 1 << 0, | |
16 FULL_TEXT = 1 << 1 | |
17 }; | |
18 | |
19 // Generates a user profile and history by psuedo-randomly generating data and | |
20 // feeding it to the history service. (srand is initialized with whatever | |
21 // urlcount is before profile is generated for deterministic output; it is | |
22 // reset to time() afterwards.) Returns true if successful. | |
23 bool GenerateProfile(GenerateProfileTypes types, | |
24 int urlcount, | |
25 const base::FilePath& dst_dir); | |
Paweł Hajdan Jr.
2013/05/06 23:46:04
nit: Add WARN_UNUSED_RESULT from base/compiler_spe
| |
26 | |
27 #endif // CHROME_TEST_PERF_GENERATE_PROFILE_H_ | |
OLD | NEW |