OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // verifier profile. | 72 // verifier profile. |
73 bool AllProfilesContainSamePasswordFormsAsVerifier(); | 73 bool AllProfilesContainSamePasswordFormsAsVerifier(); |
74 | 74 |
75 // Returns true iff all profiles contain the same password forms. | 75 // Returns true iff all profiles contain the same password forms. |
76 bool AllProfilesContainSamePasswordForms(); | 76 bool AllProfilesContainSamePasswordForms(); |
77 | 77 |
78 // Returns true if all profiles contain the same password forms and | 78 // Returns true if all profiles contain the same password forms and |
79 // it doesn't time out. | 79 // it doesn't time out. |
80 bool AwaitAllProfilesContainSamePasswordForms(); | 80 bool AwaitAllProfilesContainSamePasswordForms(); |
81 | 81 |
| 82 // Returns true if specified profile contains the same password forms as the |
| 83 // verifier and it doesn't time out. |
| 84 bool AwaitProfileContainsSamePasswordFormsAsVerifier(int index); |
| 85 |
82 // Returns the number of forms in the password store of the profile with index | 86 // Returns the number of forms in the password store of the profile with index |
83 // |index|. | 87 // |index|. |
84 int GetPasswordCount(int index); | 88 int GetPasswordCount(int index); |
85 | 89 |
86 // Returns the number of forms in the password store of the verifier profile. | 90 // Returns the number of forms in the password store of the verifier profile. |
87 int GetVerifierPasswordCount(); | 91 int GetVerifierPasswordCount(); |
88 | 92 |
89 // Creates a test password form with a well known fake signon realm used only | 93 // Creates a test password form with a well known fake signon realm used only |
90 // by LivePasswordsSyncTest based on |index|. | 94 // by LivePasswordsSyncTest based on |index|. |
91 autofill::PasswordForm CreateTestPasswordForm(int index); | 95 autofill::PasswordForm CreateTestPasswordForm(int index); |
92 | 96 |
93 } // namespace passwords_helper | 97 } // namespace passwords_helper |
94 | 98 |
95 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ | 99 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ |
OLD | NEW |