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

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

Issue 267743003: Refactor password sync integration tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove disable tests Created 6 years, 7 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 | Annotate | Revision Log
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 <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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698