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

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

Issue 1083463003: Sync: Add Android test for downloading a bookmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix GN 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 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 {
« no previous file with comments | « chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java ('k') | sync/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698