Index: chrome/browser/sync/test/integration/autofill_helper.h |
diff --git a/chrome/browser/sync/test/integration/autofill_helper.h b/chrome/browser/sync/test/integration/autofill_helper.h |
index d20acc446d97449a29a2b5d370ba3f2cfb88c1ec..5a36271239486eb93c24bf2dd6c8c5057b36a4fb 100644 |
--- a/chrome/browser/sync/test/integration/autofill_helper.h |
+++ b/chrome/browser/sync/test/integration/autofill_helper.h |
@@ -59,6 +59,9 @@ std::set<autofill::AutofillEntry> GetAllKeys(int profile) WARN_UNUSED_RESULT; |
// |profile_a| and |profile_b|. Returns true if they match. |
bool KeysMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT; |
+// Allows syncers to run until KeysMatch() returns true. |
+bool AwaitKeysMatch(int profile_a, int profile_b); |
+ |
// Replaces the Autofill profiles in sync profile |profile| with |
// |autofill_profiles|. |
void SetProfiles(int profile, |
@@ -103,6 +106,9 @@ bool ProfilesMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT; |
// they all match. |
bool AllProfilesMatch() WARN_UNUSED_RESULT; |
+// Allows the syncers to run until ProfilesMatch() returns true. |
+bool AwaitProfilesMatch(int profile_a, int profile_b); |
+ |
// Creates a test autofill profile based on the persona specified in |type|. |
autofill::AutofillProfile CreateAutofillProfile(ProfileType type); |