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

Side by Side Diff: chrome/browser/sync/test/integration/passwords_helper.h

Issue 2365763002: [Sync] Removed passphrase helper methods, removed ((n)) pattern, and fixed lint violations. (Closed)
Patch Set: Removed useless pass-through accessors. Created 4 years, 2 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
OLDNEW
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 <memory>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
11 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/sync/test/integration/sync_test.h" 13 #include "chrome/browser/sync/test/integration/sync_test.h"
13 #include "components/autofill/core/common/password_form.h" 14 #include "components/autofill/core/common/password_form.h"
14 #include "components/browser_sync/profile_sync_service.h" 15 #include "components/browser_sync/profile_sync_service.h"
15 16
16 namespace password_manager { 17 namespace password_manager {
17 class PasswordStore; 18 class PasswordStore;
(...skipping 18 matching lines...) Expand all
36 password_manager::PasswordStore* store); 37 password_manager::PasswordStore* store);
37 38
38 // Removes the login held in |form| from the password store |store|. This 39 // Removes the login held in |form| from the password store |store|. This
39 // method blocks until the operation is complete. 40 // method blocks until the operation is complete.
40 void RemoveLogin(password_manager::PasswordStore* store, 41 void RemoveLogin(password_manager::PasswordStore* store,
41 const autofill::PasswordForm& form); 42 const autofill::PasswordForm& form);
42 43
43 // Removes all password forms from the password store |store|. 44 // Removes all password forms from the password store |store|.
44 void RemoveLogins(password_manager::PasswordStore* store); 45 void RemoveLogins(password_manager::PasswordStore* store);
45 46
46 // Sets the cryptographer's encryption passphrase for the profile at index
47 // |index| to |passphrase|, and passphrase type |type|.
48 void SetEncryptionPassphrase(
49 int index,
50 const std::string& passphrase,
51 browser_sync::ProfileSyncService::PassphraseType type);
52
53 // Sets the cryptographer's decryption passphrase for the profile at index
54 // |index| to |passphrase|. Returns false if the operation failed, and true
55 // otherwise.
56 bool SetDecryptionPassphrase(int index, const std::string& passphrase);
57
58 // Gets the password store of the profile with index |index|. 47 // Gets the password store of the profile with index |index|.
59 password_manager::PasswordStore* GetPasswordStore(int index); 48 password_manager::PasswordStore* GetPasswordStore(int index);
60 49
61 // Gets the password store of the verifier profile. 50 // Gets the password store of the verifier profile.
62 password_manager::PasswordStore* GetVerifierPasswordStore(); 51 password_manager::PasswordStore* GetVerifierPasswordStore();
63 52
64 // Returns true iff the profile with index |index| contains the same password 53 // Returns true iff the profile with index |index| contains the same password
65 // forms as the verifier profile. 54 // forms as the verifier profile.
66 bool ProfileContainsSamePasswordFormsAsVerifier(int index); 55 bool ProfileContainsSamePasswordFormsAsVerifier(int index);
67 56
(...skipping 23 matching lines...) Expand all
91 // Returns the number of forms in the password store of the verifier profile. 80 // Returns the number of forms in the password store of the verifier profile.
92 int GetVerifierPasswordCount(); 81 int GetVerifierPasswordCount();
93 82
94 // Creates a test password form with a well known fake signon realm used only 83 // Creates a test password form with a well known fake signon realm used only
95 // by PasswordsSyncPerfTest based on |index|. 84 // by PasswordsSyncPerfTest based on |index|.
96 autofill::PasswordForm CreateTestPasswordForm(int index); 85 autofill::PasswordForm CreateTestPasswordForm(int index);
97 86
98 } // namespace passwords_helper 87 } // namespace passwords_helper
99 88
100 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_ 89 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORDS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698