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

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: Upload before commit. 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
« no previous file with comments | « chrome/test/live_sync/live_sync_test.cc ('k') | net/tools/testserver/chromiumsync.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
7 #include "chrome/test/live_sync/live_sync_test.h"
8
9 #include "chrome/test/live_sync/bookmarks_helper.h"
10
11 class SyncErrorTest : public LiveSyncTest{
12 public:
13 SyncErrorTest() : LiveSyncTest(SINGLE_CLIENT) {
14 }
15 ~SyncErrorTest() {}
16
17 private:
18 DISALLOW_COPY_AND_ASSIGN(SyncErrorTest);
19
20 };
21
22 IN_PROC_BROWSER_TEST_F(SyncErrorTest, BirthdayErrorTest) {
23 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
24
25 const BookmarkNode* node1 = BookmarksHelper::AddFolder(0, 0, L"title1");
26 BookmarksHelper::SetTitle(0, node1, L"new_title1");
27 ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion("Offline state change."));
28 TriggerBirthdayError();
29
30 // Now make one more change so we will do another sync.
31 const BookmarkNode* node2 = BookmarksHelper::AddFolder(0, 0, L"title2");
32 BookmarksHelper::SetTitle(0, node2, L"new_title2");
33 ASSERT_TRUE(GetClient(0)->AwaitSyncDisabled("Birthday error."));
34 }
OLDNEW
« no previous file with comments | « chrome/test/live_sync/live_sync_test.cc ('k') | net/tools/testserver/chromiumsync.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698