| 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 730500c7059117d58c0b18981496059ffc6adee6..27226bdcaa63825559e0f9e11b34bf3a5dbf24c4 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
|
| @@ -291,6 +291,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 {
|
|
|