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

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

Issue 9570055: [Sync] Add support for associating a new Synced Bookmarks node. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, address comments Created 8 years, 9 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) 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_SYNC_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 10
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // Triggers a sync error on the server. 198 // Triggers a sync error on the server.
199 // error: The error the server is expected to return. 199 // error: The error the server is expected to return.
200 // frequency: Frequency with which the error is returned. 200 // frequency: Frequency with which the error is returned.
201 void TriggerSyncError(const browser_sync::SyncProtocolError& error, 201 void TriggerSyncError(const browser_sync::SyncProtocolError& error,
202 SyncErrorFrequency frequency); 202 SyncErrorFrequency frequency);
203 203
204 // Triggers setting the sync_tabs field of the nigori node. 204 // Triggers setting the sync_tabs field of the nigori node.
205 void TriggerSetSyncTabs(); 205 void TriggerSetSyncTabs();
206 206
207 // Triggers the creation the Synced Bookmarks folder on the server.
208 void TriggerCreateSyncedBookmarks();
209
207 // Returns the number of default items that every client syncs. 210 // Returns the number of default items that every client syncs.
208 int NumberOfDefaultSyncItems() const; 211 int NumberOfDefaultSyncItems() const;
209 212
210 protected: 213 protected:
211 // Add custom switches needed for running the test. 214 // Add custom switches needed for running the test.
212 virtual void AddTestSwitches(CommandLine* cl); 215 virtual void AddTestSwitches(CommandLine* cl);
213 216
214 // Append the command line switches to enable experimental types that aren't 217 // Append the command line switches to enable experimental types that aren't
215 // on by default yet. 218 // on by default yet.
216 virtual void AddOptionalTypesToCommandLine(CommandLine* cl); 219 virtual void AddOptionalTypesToCommandLine(CommandLine* cl);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 scoped_ptr<URLFetcherImplFactory> factory_; 348 scoped_ptr<URLFetcherImplFactory> factory_;
346 349
347 // Number of default entries (as determined by the existing entries at setup 350 // Number of default entries (as determined by the existing entries at setup
348 // time on client 0). 351 // time on client 0).
349 size_t number_of_default_sync_items_; 352 size_t number_of_default_sync_items_;
350 353
351 DISALLOW_COPY_AND_ASSIGN(SyncTest); 354 DISALLOW_COPY_AND_ASSIGN(SyncTest);
352 }; 355 };
353 356
354 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 357 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/bookmarks_helper.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698