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

Side by Side 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: Merge with TopSitesLikelyImpl 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 | Annotate | Revision Log
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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698