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

Unified Diff: chrome/test/live_sync/autofill_helper.cc

Issue 7590007: Sync performance tests: take timings with autofill keys in addition to profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 9 years, 4 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
Index: chrome/test/live_sync/autofill_helper.cc
diff --git a/chrome/test/live_sync/autofill_helper.cc b/chrome/test/live_sync/autofill_helper.cc
index 77e8bbd2ba2547d96e7af64c4b4c7c3df245b6bb..98a13184c7c86bccc00e1bdc999e9ce51cd3817b 100644
--- a/chrome/test/live_sync/autofill_helper.cc
+++ b/chrome/test/live_sync/autofill_helper.cc
@@ -130,8 +130,7 @@ PersonalDataManager* GetPersonalDataManager(int index) {
return test()->GetProfile(index)->GetPersonalDataManager();
}
-void AddKeys(int profile,
- const std::set<AutofillKey>& keys) {
+void AddKeys(int profile, const std::set<AutofillKey>& keys) {
std::vector<webkit_glue::FormField> form_fields;
for (std::set<AutofillKey>::const_iterator i = keys.begin();
i != keys.end();
@@ -246,6 +245,10 @@ int GetProfileCount(int profile) {
return GetAllProfiles(profile).size();
}
+int GetKeyCount(int profile) {
+ return GetAllKeys(profile).size();
+}
+
bool ProfilesMatch(int profile_a, int profile_b) {
const std::vector<AutofillProfile*>& autofill_profiles_a =
GetAllProfiles(profile_a);
« no previous file with comments | « chrome/test/live_sync/autofill_helper.h ('k') | chrome/test/live_sync/performance/autofill_sync_perf_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698