Chromium Code Reviews| Index: chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc |
| diff --git a/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc b/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc |
| index ebe6e535599d5184a794471589f3e8bee21affd0..dec63c0765c105e6e1ab55d2552b5b0d157d759d 100644 |
| --- a/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc |
| +++ b/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc |
| @@ -6,6 +6,7 @@ |
| #include "chrome/browser/autofill/autofill_profile.h" |
| #include "chrome/browser/sync/profile_sync_service_harness.h" |
| #include "chrome/browser/sync/test/integration/autofill_helper.h" |
| +#include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
| #include "chrome/browser/sync/test/integration/sync_test.h" |
| #include "chrome/browser/webdata/autofill_entry.h" |
| #include "chrome/browser/webdata/autofill_table.h" |
| @@ -24,13 +25,23 @@ using autofill_helper::PROFILE_NULL; |
| using autofill_helper::RemoveKey; |
| using autofill_helper::RemoveProfile; |
| using autofill_helper::UpdateProfile; |
| +using bookmarks_helper::AddURL; |
| +using bookmarks_helper::IndexedURL; |
| +using bookmarks_helper::IndexedURLTitle; |
| class TwoClientAutofillSyncTest : public SyncTest { |
| public: |
| - TwoClientAutofillSyncTest() : SyncTest(TWO_CLIENT) {} |
| + TwoClientAutofillSyncTest() : SyncTest(TWO_CLIENT) { count = 0; } |
| virtual ~TwoClientAutofillSyncTest() {} |
| + // We do this so as to make a change that will trigger the autofill to sync. |
| + // By default autofill does not sync unless there is some other change. |
| + void MakeABookmarkChange(int profile) { |
| + AddURL(profile, IndexedURLTitle(count), GURL(IndexedURL(count))); |
| + ++count; |
| + } |
|
Raghu Simha
2011/12/19 21:01:58
nit: fix indent.
|
| private: |
| + int count; |
| DISALLOW_COPY_AND_ASSIGN(TwoClientAutofillSyncTest); |
| }; |