| 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" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Removes the login held in |form| from the password store |store|. This | 38 // Removes the login held in |form| from the password store |store|. This |
| 39 // method blocks until the operation is complete. | 39 // method blocks until the operation is complete. |
| 40 void RemoveLogin(password_manager::PasswordStore* store, | 40 void RemoveLogin(password_manager::PasswordStore* store, |
| 41 const autofill::PasswordForm& form); | 41 const autofill::PasswordForm& form); |
| 42 | 42 |
| 43 // Removes all password forms from the password store |store|. | 43 // Removes all password forms from the password store |store|. |
| 44 void RemoveLogins(password_manager::PasswordStore* store); | 44 void RemoveLogins(password_manager::PasswordStore* store); |
| 45 | 45 |
| 46 // Sets the cryptographer's encryption passphrase for the profile at index | 46 // Sets the cryptographer's encryption passphrase for the profile at index |
| 47 // |index| to |passphrase|, and passphrase type |type|. | 47 // |index| to |passphrase|, and passphrase type |type|. |
| 48 void SetEncryptionPassphrase(int index, | 48 void SetEncryptionPassphrase( |
| 49 const std::string& passphrase, | 49 int index, |
| 50 ProfileSyncService::PassphraseType type); | 50 const std::string& passphrase, |
| 51 browser_sync::ProfileSyncService::PassphraseType type); |
| 51 | 52 |
| 52 // Sets the cryptographer's decryption passphrase for the profile at index | 53 // Sets the cryptographer's decryption passphrase for the profile at index |
| 53 // |index| to |passphrase|. Returns false if the operation failed, and true | 54 // |index| to |passphrase|. Returns false if the operation failed, and true |
| 54 // otherwise. | 55 // otherwise. |
| 55 bool SetDecryptionPassphrase(int index, const std::string& passphrase); | 56 bool SetDecryptionPassphrase(int index, const std::string& passphrase); |
| 56 | 57 |
| 57 // Gets the password store of the profile with index |index|. | 58 // Gets the password store of the profile with index |index|. |
| 58 password_manager::PasswordStore* GetPasswordStore(int index); | 59 password_manager::PasswordStore* GetPasswordStore(int index); |
| 59 | 60 |
| 60 // Gets the password store of the verifier profile. | 61 // Gets the password store of the verifier profile. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 90 // Returns the number of forms in the password store of the verifier profile. | 91 // Returns the number of forms in the password store of the verifier profile. |
| 91 int GetVerifierPasswordCount(); | 92 int GetVerifierPasswordCount(); |
| 92 | 93 |
| 93 // Creates a test password form with a well known fake signon realm used only | 94 // Creates a test password form with a well known fake signon realm used only |
| 94 // by PasswordsSyncPerfTest based on |index|. | 95 // by PasswordsSyncPerfTest based on |index|. |
| 95 autofill::PasswordForm CreateTestPasswordForm(int index); | 96 autofill::PasswordForm CreateTestPasswordForm(int index); |
| 96 | 97 |
| 97 } // namespace passwords_helper | 98 } // namespace passwords_helper |
| 98 | 99 |
| 99 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ | 100 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ |
| OLD | NEW |