Index: chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java |
diff --git a/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java b/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java |
index 49db8c4e575f2dc82111babbb441d6d8e09faada..4c6f220f1cf60aac599c8ac55f090d7a9c0512c9 100644 |
--- a/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java |
+++ b/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java |
@@ -281,6 +281,23 @@ public class SyncTest extends ChromeShellTestBase { |
// injected. This data should be retrieved from the Sync node browser data. |
} |
+ @LargeTest |
+ @Feature({"Sync"}) |
+ public void testDownloadBookmark() throws InterruptedException { |
+ setupTestAccountAndSignInToSync(FOREIGN_SESSION_TEST_MACHINE_ID); |
+ // 3 bookmark folders exist by default: Bookmarks Bar, Other Bookmarks, Mobile Bookmarks. |
+ assertLocalEntityCount("Bookmarks", 3); |
+ |
+ mFakeServerHelper.injectBookmarkEntity( |
+ "Title", "http://chromium.org", mFakeServerHelper.getBookmarkBarFolderId()); |
+ |
+ SyncTestUtil.triggerSyncAndWaitForCompletion(mContext); |
+ assertLocalEntityCount("Bookmarks", 4); |
+ |
+ // TODO(pvalenzuela): Also verify that the downloaded bookmark matches the one that was |
+ // injected. This data should be retrieved from the Sync node browser data. |
+ } |
+ |
private void setupTestAccountAndSignInToSync( |
final String syncClientIdentifier) |
throws InterruptedException { |