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 "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/sync/test/integration/sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
13 #include "components/autofill/core/common/password_form.h" | 13 #include "components/autofill/core/common/password_form.h" |
14 #include "components/browser_sync/browser/profile_sync_service.h" | 14 #include "components/browser_sync/profile_sync_service.h" |
15 | 15 |
16 namespace password_manager { | 16 namespace password_manager { |
17 class PasswordStore; | 17 class PasswordStore; |
18 } | 18 } |
19 | 19 |
20 namespace passwords_helper { | 20 namespace passwords_helper { |
21 | 21 |
22 // Adds the login held in |form| to the password store |store|. Even though | 22 // Adds the login held in |form| to the password store |store|. Even though |
23 // logins are normally added asynchronously, this method will block until the | 23 // logins are normally added asynchronously, this method will block until the |
24 // login is added. | 24 // login is added. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // 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. |
91 int GetVerifierPasswordCount(); | 91 int GetVerifierPasswordCount(); |
92 | 92 |
93 // 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 |
94 // by PasswordsSyncPerfTest based on |index|. | 94 // by PasswordsSyncPerfTest based on |index|. |
95 autofill::PasswordForm CreateTestPasswordForm(int index); | 95 autofill::PasswordForm CreateTestPasswordForm(int index); |
96 | 96 |
97 } // namespace passwords_helper | 97 } // namespace passwords_helper |
98 | 98 |
99 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ | 99 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ |
OLD | NEW |