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

Side by Side Diff: chrome/test/live_sync/live_bookmarks_sync_test.h

Issue 7171003: Performance tests for bookmark sync. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Adding TCM IDs Created 9 years, 6 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/chrome_tests.gypi ('k') | chrome/test/live_sync/live_bookmarks_sync_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_BOOKMARKS_SYNC_TEST_H_ 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_BOOKMARKS_SYNC_TEST_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_BOOKMARKS_SYNC_TEST_H_ 6 #define CHROME_TEST_LIVE_SYNC_LIVE_BOOKMARKS_SYNC_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Returns the number of bookmark folders in the bookmark model of profile 156 // Returns the number of bookmark folders in the bookmark model of profile
157 // |profile| whose titles contain the query string |title|. 157 // |profile| whose titles contain the query string |title|.
158 int CountFoldersWithTitlesMatching( 158 int CountFoldersWithTitlesMatching(
159 int profile, 159 int profile,
160 const std::wstring& title) WARN_UNUSED_RESULT; 160 const std::wstring& title) WARN_UNUSED_RESULT;
161 161
162 // Creates a unique favicon using |seed|. 162 // Creates a unique favicon using |seed|.
163 static std::vector<unsigned char> CreateFavicon(int seed); 163 static std::vector<unsigned char> CreateFavicon(int seed);
164 164
165 // Returns a URL identifiable by |i|.
166 static std::string IndexedURL(int i);
167
168 // Returns a URL title identifiable by |i|.
169 static std::wstring IndexedURLTitle(int i);
170
171 // Returns a folder name identifiable by |i|.
172 static std::wstring IndexedFolderName(int i);
173
174 // Returns a subfolder name identifiable by |i|.
175 static std::wstring IndexedSubfolderName(int i);
176
177 // Returns a subsubfolder name identifiable by |i|.
178 static std::wstring IndexedSubsubfolderName(int i);
179
165 private: 180 private:
166 // Helper object that has the functionality to verify changes made to the 181 // Helper object that has the functionality to verify changes made to the
167 // bookmarks of individual profiles. 182 // bookmarks of individual profiles.
168 scoped_ptr<BookmarkModelVerifier> verifier_helper_; 183 scoped_ptr<BookmarkModelVerifier> verifier_helper_;
169 184
170 DISALLOW_COPY_AND_ASSIGN(LiveBookmarksSyncTest); 185 DISALLOW_COPY_AND_ASSIGN(LiveBookmarksSyncTest);
171 }; 186 };
172 187
173 class SingleClientLiveBookmarksSyncTest : public LiveBookmarksSyncTest { 188 class SingleClientLiveBookmarksSyncTest : public LiveBookmarksSyncTest {
174 public: 189 public:
(...skipping 29 matching lines...) Expand all
204 public: 219 public:
205 ManyClientLiveBookmarksSyncTest() 220 ManyClientLiveBookmarksSyncTest()
206 : LiveBookmarksSyncTest(MANY_CLIENT) {} 221 : LiveBookmarksSyncTest(MANY_CLIENT) {}
207 virtual ~ManyClientLiveBookmarksSyncTest() {} 222 virtual ~ManyClientLiveBookmarksSyncTest() {}
208 223
209 private: 224 private:
210 DISALLOW_COPY_AND_ASSIGN(ManyClientLiveBookmarksSyncTest); 225 DISALLOW_COPY_AND_ASSIGN(ManyClientLiveBookmarksSyncTest);
211 }; 226 };
212 227
213 #endif // CHROME_TEST_LIVE_SYNC_LIVE_BOOKMARKS_SYNC_TEST_H_ 228 #endif // CHROME_TEST_LIVE_SYNC_LIVE_BOOKMARKS_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_bookmarks_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698