OLD | NEW |
(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 } |
OLD | NEW |