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..7d7f39cc33b2b69b180ebdef30f3f5926a995174 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,25 @@ using autofill_helper::PROFILE_NULL; |
using autofill_helper::RemoveKey; |
using autofill_helper::RemoveProfile; |
using autofill_helper::UpdateProfile; |
+using bookmarks_helper::AddFolder; |
Raghu Simha
2011/12/19 20:50:48
Remove this.
lipalani1
2011/12/19 20:54:01
Done.
|
+using bookmarks_helper::AddURL; |
+using bookmarks_helper::IndexedURL; |
+using bookmarks_helper::IndexedURLTitle; |
+using bookmarks_helper::SetTitle; |
Raghu Simha
2011/12/19 20:50:48
Remove this.
lipalani1
2011/12/19 20:54:01
Done.
|
class TwoClientAutofillSyncTest : public SyncTest { |
public: |
- TwoClientAutofillSyncTest() : SyncTest(TWO_CLIENT) {} |
+ TwoClientAutofillSyncTest() : SyncTest(TWO_CLIENT) {count = 0;} |
Raghu Simha
2011/12/19 20:50:48
nit: I think the style guide recommends spaces aft
lipalani1
2011/12/19 20:54:01
Done.
|
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; |
+ } |
private: |
+ int count; |
DISALLOW_COPY_AND_ASSIGN(TwoClientAutofillSyncTest); |
}; |