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

Side by Side Diff: chrome/test/live_sync/sync_errors_test.cc

Issue 7481009: Test birtday error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review Created 9 years, 4 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/sync/profile_sync_service_harness.h"
6 #include "chrome/test/live_sync/live_bookmarks_sync_test.h"
7
8 class SyncErrorTest : public SingleClientLiveBookmarksSyncTest {
9 };
10
11 IN_PROC_BROWSER_TEST_F(SyncErrorTest, BirthdayErrorTest) {
12 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
13
14 const BookmarkNode* node1 = AddFolder(0, L"title1");
15 SetTitle(0, node1, L"new_title1");
16 ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion("Offline state change."));
17 TriggerBirthdayError();
18
19 // Now make one more change so we will do another sync.
20 const BookmarkNode* node2 = AddFolder(0, L"title2");
21 SetTitle(0, node1, L"new_title2");
22 ASSERT_TRUE(GetClient(0)->AwaitSyncDisabled("Birthday error."));
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698