| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |