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

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

Issue 6462015: Cleanup more test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wtf windows is this me Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 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 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"
6 #include "chrome/browser/sync/profile_sync_service_harness.h"
5 #include "chrome/test/live_sync/live_bookmarks_sync_test.h" 7 #include "chrome/test/live_sync/live_bookmarks_sync_test.h"
6 8
7 #include "chrome/browser/profiles/profile.h"
8
9 IN_PROC_BROWSER_TEST_F(SingleClientLiveBookmarksSyncTest, OfflineToOnline) { 9 IN_PROC_BROWSER_TEST_F(SingleClientLiveBookmarksSyncTest, OfflineToOnline) {
10 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 10 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
11 11
12 DisableNetwork(GetProfile(0)); 12 DisableNetwork(GetProfile(0));
13 const BookmarkNode* node = AddGroup(0, L"title"); 13 const BookmarkNode* node = AddGroup(0, L"title");
14 SetTitle(0, node, L"new_title"); 14 SetTitle(0, node, L"new_title");
15 ASSERT_FALSE(GetClient(0)->AwaitSyncCycleCompletion("Offline state change.")); 15 ASSERT_FALSE(GetClient(0)->AwaitSyncCycleCompletion("Offline state change."));
16 ASSERT_EQ(ProfileSyncService::Status::OFFLINE_UNSYNCED, 16 ASSERT_EQ(ProfileSyncService::Status::OFFLINE_UNSYNCED,
17 GetClient(0)->GetStatus().summary); 17 GetClient(0)->GetStatus().summary);
18 18
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 GURL("http://mapleleafs.nhl.com")); 120 GURL("http://mapleleafs.nhl.com"));
121 const BookmarkNode* wynn = AddURL(0, bar, 1, L"Wynn", 121 const BookmarkNode* wynn = AddURL(0, bar, 1, L"Wynn",
122 GURL("http://www.wynnlasvegas.com")); 122 GURL("http://www.wynnlasvegas.com"));
123 123
124 Move(0, wynn, tier3_b, 0); 124 Move(0, wynn, tier3_b, 0);
125 Move(0, leafs, tier3_b, 0); 125 Move(0, leafs, tier3_b, 0);
126 ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion( 126 ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion(
127 "Move after addition of bookmarks.")); 127 "Move after addition of bookmarks."));
128 ASSERT_TRUE(ModelMatchesVerifier(0)); 128 ASSERT_TRUE(ModelMatchesVerifier(0));
129 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698