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

Side by Side Diff: chrome/test/live_sync/autofill_helper.h

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: modify trace labels for performance graphs 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LIVE_SYNC_AUTOFILL_HELPER_H_ 5 #ifndef CHROME_TEST_LIVE_SYNC_AUTOFILL_HELPER_H_
6 #define CHROME_TEST_LIVE_SYNC_AUTOFILL_HELPER_H_ 6 #define CHROME_TEST_LIVE_SYNC_AUTOFILL_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Gets all the Autofill profiles in the PersonalDataManager of sync profile 72 // Gets all the Autofill profiles in the PersonalDataManager of sync profile
73 // |profile|. 73 // |profile|.
74 const std::vector<AutofillProfile*>& GetAllProfiles( 74 const std::vector<AutofillProfile*>& GetAllProfiles(
75 int profile) WARN_UNUSED_RESULT; 75 int profile) WARN_UNUSED_RESULT;
76 76
77 // Returns the number of autofill profiles contained by sync profile 77 // Returns the number of autofill profiles contained by sync profile
78 // |profile|. 78 // |profile|.
79 int GetProfileCount(int profile); 79 int GetProfileCount(int profile);
80 80
81 // Returns the number of autofill keys contained by sync profile |profile|.
82 int GetKeyCount(int profile);
83
81 // Compares the Autofill profiles in the PersonalDataManagers of sync profiles 84 // Compares the Autofill profiles in the PersonalDataManagers of sync profiles
82 // |profile_a| and |profile_b|. Returns true if they match. 85 // |profile_a| and |profile_b|. Returns true if they match.
83 bool ProfilesMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT; 86 bool ProfilesMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT;
84 87
85 // Compares the autofill profiles for all sync profiles, and returns true if 88 // Compares the autofill profiles for all sync profiles, and returns true if
86 // they all match. 89 // they all match.
87 bool AllProfilesMatch() WARN_UNUSED_RESULT; 90 bool AllProfilesMatch() WARN_UNUSED_RESULT;
88 91
89 // Creates a test autofill profile based on the persona specified in |type|. 92 // Creates a test autofill profile based on the persona specified in |type|.
90 AutofillProfile CreateAutofillProfile(ProfileType type); 93 AutofillProfile CreateAutofillProfile(ProfileType type);
91 94
92 } // namespace autofill_helper 95 } // namespace autofill_helper
93 96
94 #endif // CHROME_TEST_LIVE_SYNC_AUTOFILL_HELPER_H_ 97 #endif // CHROME_TEST_LIVE_SYNC_AUTOFILL_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/live_sync/autofill_helper.cc » ('j') | chrome/test/live_sync/performance/autofill_sync_perf_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698