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

Side by Side Diff: chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc

Issue 10210009: sync: Loop committing items without downloading updates (v2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile.h" 5 #include "chrome/browser/profiles/profile.h"
6 #include "chrome/browser/sync/profile_sync_service_harness.h" 6 #include "chrome/browser/sync/profile_sync_service_harness.h"
7 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" 7 #include "chrome/browser/sync/test/integration/bookmarks_helper.h"
8 #include "chrome/browser/sync/test/integration/sync_test.h" 8 #include "chrome/browser/sync/test/integration/sync_test.h"
9 9
10 using bookmarks_helper::AddFolder; 10 using bookmarks_helper::AddFolder;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 DISABLED_RestartSyncService) { 152 DISABLED_RestartSyncService) {
153 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 153 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
154 154
155 ASSERT_TRUE(AddURL(0, L"Google", GURL("http://www.google.com"))); 155 ASSERT_TRUE(AddURL(0, L"Google", GURL("http://www.google.com")));
156 ASSERT_TRUE(GetClient(0)->AwaitFullSyncCompletion("Added a bookmark.")); 156 ASSERT_TRUE(GetClient(0)->AwaitFullSyncCompletion("Added a bookmark."));
157 ASSERT_TRUE(ModelMatchesVerifier(0)); 157 ASSERT_TRUE(ModelMatchesVerifier(0));
158 158
159 RestartSyncService(0); 159 RestartSyncService(0);
160 ASSERT_TRUE(GetClient(0)->AwaitFullSyncCompletion("Restarted sync.")); 160 ASSERT_TRUE(GetClient(0)->AwaitFullSyncCompletion("Restarted sync."));
161 ASSERT_TRUE(ModelMatchesVerifier(0)); 161 ASSERT_TRUE(ModelMatchesVerifier(0));
162 ASSERT_EQ(0, GetClient(0)->GetStatus().unsynced_count);
163 } 162 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698