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

Unified Diff: chrome/test/live_sync/single_client_live_bookmarks_sync_test.cc

Issue 3305003: New authorization framework for sync. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/test/live_sync/single_client_live_bookmarks_sync_test.cc
===================================================================
--- chrome/test/live_sync/single_client_live_bookmarks_sync_test.cc (revision 58702)
+++ chrome/test/live_sync/single_client_live_bookmarks_sync_test.cc (working copy)
@@ -4,6 +4,37 @@
#include "chrome/test/live_sync/live_bookmarks_sync_test.h"
+// TODO(rsimha): Debug the flakiness of this with fred. http://crbug.com/53858
+IN_PROC_BROWSER_TEST_F(SingleClientLiveBookmarksSyncTest,
+ FAILS_OfflineToOnline) {
+ ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
+
+ DisableNetwork(GetProfile(0));
+
+ BookmarkModel* bm = GetBookmarkModel(0);
+ BookmarkModelVerifier* v = verifier_helper();
+
+ const BookmarkNode* top = v->AddGroup(bm, bm->other_node(), 0, L"top");
+ v->SetTitle(bm, top, L"title");
+
+
+ EXPECT_TRUE(GetClient(0)->AwaitSyncCycleCompletion("Offline state change."));
+ {
+ ProfileSyncService::Status status(
+ GetClient(0)->service()->QueryDetailedSyncStatus());
+ EXPECT_EQ(status.summary, ProfileSyncService::Status::OFFLINE_UNSYNCED);
+ }
+
+ EnableNetwork(GetProfile(0));
+ {
+ EXPECT_TRUE(GetClient(0)->AwaitSyncCycleCompletion("Commit changes."));
+ ProfileSyncService::Status status(
+ GetClient(0)->service()->QueryDetailedSyncStatus());
+ EXPECT_EQ(status.summary, ProfileSyncService::Status::READY);
+ v->ExpectMatch(bm);
+ }
+}
+
IN_PROC_BROWSER_TEST_F(SingleClientLiveBookmarksSyncTest, Sanity) {
ASSERT_TRUE(SetupClients()) << "SetupClients() failed.";
BookmarkModel* bm = GetBookmarkModel(0);

Powered by Google App Engine
This is Rietveld 408576698