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

Side by Side Diff: chrome/test/live_sync/two_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/test/live_sync/live_bookmarks_sync_test.h"
6
7 #include "base/rand_util.h" 5 #include "base/rand_util.h"
8 #include "base/stringprintf.h" 6 #include "base/stringprintf.h"
9 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/sync/profile_sync_service_harness.h"
9 #include "chrome/test/live_sync/live_bookmarks_sync_test.h"
10 10
11 const std::string kGenericURL = "http://www.host.ext:1234/path/filename"; 11 const std::string kGenericURL = "http://www.host.ext:1234/path/filename";
12 const std::wstring kGenericURLTitle = L"URL Title"; 12 const std::wstring kGenericURLTitle = L"URL Title";
13 const std::wstring kGenericFolderName = L"Folder Name"; 13 const std::wstring kGenericFolderName = L"Folder Name";
14 const std::wstring kGenericSubfolderName = L"Subfolder Name"; 14 const std::wstring kGenericSubfolderName = L"Subfolder Name";
15 const std::wstring kGenericSubsubfolderName = L"Subsubfolder Name"; 15 const std::wstring kGenericSubsubfolderName = L"Subsubfolder Name";
16 16
17 static std::string IndexedURL(int i) { 17 static std::string IndexedURL(int i) {
18 return StringPrintf("http://www.host.ext:1234/path/filename/%d", i); 18 return StringPrintf("http://www.host.ext:1234/path/filename/%d", i);
19 } 19 }
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 } 1467 }
1468 1468
1469 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1469 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1470 ASSERT_TRUE(AwaitQuiescence()); 1470 ASSERT_TRUE(AwaitQuiescence());
1471 ASSERT_TRUE(AllModelsMatch()); 1471 ASSERT_TRUE(AllModelsMatch());
1472 1472
1473 for (int i = 1; i < 5 ; ++i) { 1473 for (int i = 1; i < 5 ; ++i) {
1474 ASSERT_TRUE(CountBookmarksWithTitlesMatching(1, IndexedURLTitle(i)) == i); 1474 ASSERT_TRUE(CountBookmarksWithTitlesMatching(1, IndexedURLTitle(i)) == i);
1475 } 1475 }
1476 } 1476 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698