Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(950)

Unified Diff: chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java

Issue 1094553002: Revert "Speculative revert by sheriff" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698