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

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

Issue 2791793002: [Sync] Fix flaky TwoClientAutofillSyncTest.ConflictingFields. (Closed)
Patch Set: Updated for Pavel's comment. Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AUTOFILL_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // |profile|. 93 // |profile|.
94 int GetProfileCount(int profile); 94 int GetProfileCount(int profile);
95 95
96 // Returns the number of autofill keys contained by sync profile |profile|. 96 // Returns the number of autofill keys contained by sync profile |profile|.
97 int GetKeyCount(int profile); 97 int GetKeyCount(int profile);
98 98
99 // Compares the Autofill profiles in the PersonalDataManagers of sync profiles 99 // Compares the Autofill profiles in the PersonalDataManagers of sync profiles
100 // |profile_a| and |profile_b|. Returns true if they match. 100 // |profile_a| and |profile_b|. Returns true if they match.
101 bool ProfilesMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT; 101 bool ProfilesMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT;
102 102
103 // Compares the autofill profiles for all sync profiles, and returns true if
104 // they all match.
105 bool AllProfilesMatch() WARN_UNUSED_RESULT;
106
107 // Creates a test autofill profile based on the persona specified in |type|. 103 // Creates a test autofill profile based on the persona specified in |type|.
108 autofill::AutofillProfile CreateAutofillProfile(ProfileType type); 104 autofill::AutofillProfile CreateAutofillProfile(ProfileType type);
109 105
110 // Creates a test autofill profile with a unique GUID 106 // Creates a test autofill profile with a unique GUID
111 autofill::AutofillProfile CreateUniqueAutofillProfile(); 107 autofill::AutofillProfile CreateUniqueAutofillProfile();
112 108
113 } // namespace autofill_helper 109 } // namespace autofill_helper
114 110
115 // Checker to block until autofill keys match on both profiles. 111 // Checker to block until autofill keys match on both profiles.
116 class AutofillKeysChecker : public MultiClientStatusChangeChecker { 112 class AutofillKeysChecker : public MultiClientStatusChangeChecker {
(...skipping 23 matching lines...) Expand all
140 136
141 // autofill::PersonalDataManager implementation. 137 // autofill::PersonalDataManager implementation.
142 void OnPersonalDataChanged() override; 138 void OnPersonalDataChanged() override;
143 139
144 private: 140 private:
145 const int profile_a_; 141 const int profile_a_;
146 const int profile_b_; 142 const int profile_b_;
147 }; 143 };
148 144
149 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 145 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698