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

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

Issue 474273003: sync: Refactor bookmarks integration tests Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use RunLoop for favicon wait Created 6 years, 4 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 | « no previous file | chrome/browser/sync/test/integration/bookmarks_helper.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) 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Checks if the bookmark models of |profile_a| and |profile_b| match each 143 // Checks if the bookmark models of |profile_a| and |profile_b| match each
144 // other. Returns true if they match. 144 // other. Returns true if they match.
145 bool ModelsMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT; 145 bool ModelsMatch(int profile_a, int profile_b) WARN_UNUSED_RESULT;
146 146
147 // Checks if the bookmark models of all sync profiles match each other. Does 147 // Checks if the bookmark models of all sync profiles match each other. Does
148 // not compare them with the verifier bookmark model. Returns true if they 148 // not compare them with the verifier bookmark model. Returns true if they
149 // match. 149 // match.
150 bool AllModelsMatch() WARN_UNUSED_RESULT; 150 bool AllModelsMatch() WARN_UNUSED_RESULT;
151 151
152 // Check if the bookmarks models of all sync profiles match each other, using
153 // AllModelsMatch. Returns true if bookmark models match and don't timeout
154 // while checking.
155 bool AwaitAllModelsMatch() WARN_UNUSED_RESULT;
156
157 // Checks if the bookmark model of profile |profile| contains any instances of 152 // Checks if the bookmark model of profile |profile| contains any instances of
158 // two bookmarks with the same URL under the same parent folder. Returns true 153 // two bookmarks with the same URL under the same parent folder. Returns true
159 // if even one instance is found. 154 // if even one instance is found.
160 bool ContainsDuplicateBookmarks(int profile); 155 bool ContainsDuplicateBookmarks(int profile);
161 156
162 // Returns whether a node exists with the specified url. 157 // Returns whether a node exists with the specified url.
163 bool HasNodeWithURL(int profile, const GURL& url); 158 bool HasNodeWithURL(int profile, const GURL& url);
164 159
165 // Gets the node in the bookmark model of profile |profile| that has the url 160 // Gets the node in the bookmark model of profile |profile| that has the url
166 // |url|. Note: Only one instance of |url| is assumed to be present. 161 // |url|. Note: Only one instance of |url| is assumed to be present.
(...skipping 28 matching lines...) Expand all
195 190
196 // Returns a folder name identifiable by |i|. 191 // Returns a folder name identifiable by |i|.
197 std::string IndexedFolderName(int i); 192 std::string IndexedFolderName(int i);
198 193
199 // Returns a subfolder name identifiable by |i|. 194 // Returns a subfolder name identifiable by |i|.
200 std::string IndexedSubfolderName(int i); 195 std::string IndexedSubfolderName(int i);
201 196
202 // Returns a subsubfolder name identifiable by |i|. 197 // Returns a subsubfolder name identifiable by |i|.
203 std::string IndexedSubsubfolderName(int i); 198 std::string IndexedSubsubfolderName(int i);
204 199
200 // Check if the bookmarks models of all sync profiles match each other, using
201 // AllModelsMatch. Returns true if bookmark models match and don't timeout
202 // while checking.
203 bool AwaitAllModelsMatch();
204
205 // Check if the bookmarks models of all sync profiles match each other and the
206 // verifier profile, using AllModelsMatchVerifier. Returns true if bookmark
207 // models match and don't timeout while checking.
208 bool AwaitAllModelsMatchVerifier();
209
205 } // namespace bookmarks_helper 210 } // namespace bookmarks_helper
206 211
207 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ 212 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/bookmarks_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698