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

Side by Side Diff: chrome/browser/sync/test/integration/bookmarks_helper.h

Issue 772513004: Add new E2E sync multi profiles tests. This should not affect any existing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implement OnSyncCycleCompleted send refresh notifications Created 6 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // Returns whether a node exists with the specified url. 165 // Returns whether a node exists with the specified url.
166 bool HasNodeWithURL(int profile, const GURL& url); 166 bool HasNodeWithURL(int profile, const GURL& url);
167 167
168 // Gets the node in the bookmark model of profile |profile| that has the url 168 // Gets the node in the bookmark model of profile |profile| that has the url
169 // |url|. Note: Only one instance of |url| is assumed to be present. 169 // |url|. Note: Only one instance of |url| is assumed to be present.
170 const BookmarkNode* GetUniqueNodeByURL( 170 const BookmarkNode* GetUniqueNodeByURL(
171 int profile, 171 int profile,
172 const GURL& url) WARN_UNUSED_RESULT; 172 const GURL& url) WARN_UNUSED_RESULT;
173 173
174 // Returns the number of bookmarks in bookmark model of profile |profile|.
175 int CountAllBookmarks(int profile) WARN_UNUSED_RESULT;
176
174 // Returns the number of bookmarks in bookmark model of profile |profile| 177 // Returns the number of bookmarks in bookmark model of profile |profile|
175 // whose titles match the string |title|. 178 // whose titles match the string |title|.
176 int CountBookmarksWithTitlesMatching( 179 int CountBookmarksWithTitlesMatching(
177 int profile, 180 int profile,
178 const std::string& title) WARN_UNUSED_RESULT; 181 const std::string& title) WARN_UNUSED_RESULT;
179 182
180 // Returns the number of bookmark folders in the bookmark model of profile 183 // Returns the number of bookmark folders in the bookmark model of profile
181 // |profile| whose titles contain the query string |title|. 184 // |profile| whose titles contain the query string |title|.
182 int CountFoldersWithTitlesMatching( 185 int CountFoldersWithTitlesMatching(
183 int profile, 186 int profile,
(...skipping 17 matching lines...) Expand all
201 204
202 // Returns a subfolder name identifiable by |i|. 205 // Returns a subfolder name identifiable by |i|.
203 std::string IndexedSubfolderName(int i); 206 std::string IndexedSubfolderName(int i);
204 207
205 // Returns a subsubfolder name identifiable by |i|. 208 // Returns a subsubfolder name identifiable by |i|.
206 std::string IndexedSubsubfolderName(int i); 209 std::string IndexedSubsubfolderName(int i);
207 210
208 } // namespace bookmarks_helper 211 } // namespace bookmarks_helper
209 212
210 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ 213 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698