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

Side by Side Diff: trunk/src/chrome/test/perf/generate_profile.h

Issue 19637009: Revert 212459 "Remove TextDatabase from the history service." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_PERF_GENERATE_PROFILE_H_ 5 #ifndef CHROME_TEST_PERF_GENERATE_PROFILE_H_
6 #define CHROME_TEST_PERF_GENERATE_PROFILE_H_ 6 #define CHROME_TEST_PERF_GENERATE_PROFILE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 9
10 namespace base { 10 namespace base {
11 class FilePath; 11 class FilePath;
12 } 12 }
13 13
14 // Addition types data can be generated for. By default only urls/visits are 14 // Addition types data can be generated for. By default only urls/visits are
15 // added. 15 // added.
16 enum GenerateProfileTypes { 16 enum GenerateProfileTypes {
17 TOP_SITES = 1 << 0 17 TOP_SITES = 1 << 0,
18 FULL_TEXT = 1 << 1
18 }; 19 };
19 20
20 // Generates a user profile and history by psuedo-randomly generating data and 21 // Generates a user profile and history by psuedo-randomly generating data and
21 // feeding it to the history service. (srand is initialized with whatever 22 // feeding it to the history service. (srand is initialized with whatever
22 // urlcount is before profile is generated for deterministic output; it is 23 // urlcount is before profile is generated for deterministic output; it is
23 // reset to time() afterwards.) Returns true if successful. 24 // reset to time() afterwards.) Returns true if successful.
24 bool GenerateProfile(GenerateProfileTypes types, 25 bool GenerateProfile(GenerateProfileTypes types,
25 int urlcount, 26 int urlcount,
26 const base::FilePath& dst_dir) WARN_UNUSED_RESULT; 27 const base::FilePath& dst_dir) WARN_UNUSED_RESULT;
27 28
28 #endif // CHROME_TEST_PERF_GENERATE_PROFILE_H_ 29 #endif // CHROME_TEST_PERF_GENERATE_PROFILE_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/test/data/History/url_history_provider_test.db.txt ('k') | trunk/src/chrome/test/perf/generate_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698