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

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

Issue 2461463002: [Sync] Replacing NULL with nullptr/null throughout sync code. (Closed)
Patch Set: Reverted PROFILE_nullptr mistake. Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // only if ServerSupportsErrorTriggering() returned true. 230 // only if ServerSupportsErrorTriggering() returned true.
231 void TriggerMigrationDoneError(syncer::ModelTypeSet model_types); 231 void TriggerMigrationDoneError(syncer::ModelTypeSet model_types);
232 232
233 // Triggers an XMPP auth error on the server. Note the server will 233 // Triggers an XMPP auth error on the server. Note the server will
234 // stay in this state until shut down. 234 // stay in this state until shut down.
235 void TriggerXmppAuthError(); 235 void TriggerXmppAuthError();
236 236
237 // Triggers the creation the Synced Bookmarks folder on the server. 237 // Triggers the creation the Synced Bookmarks folder on the server.
238 void TriggerCreateSyncedBookmarks(); 238 void TriggerCreateSyncedBookmarks();
239 239
240 // Returns the FakeServer being used for the test or NULL if FakeServer is 240 // Returns the FakeServer being used for the test or null if FakeServer is
241 // not being used. 241 // not being used.
242 fake_server::FakeServer* GetFakeServer() const; 242 fake_server::FakeServer* GetFakeServer() const;
243 243
244 // Triggers a sync for the given |model_types| for the Profile at |index|. 244 // Triggers a sync for the given |model_types| for the Profile at |index|.
245 void TriggerSyncForModelTypes(int index, syncer::ModelTypeSet model_types); 245 void TriggerSyncForModelTypes(int index, syncer::ModelTypeSet model_types);
246 246
247 protected: 247 protected:
248 // Add custom switches needed for running the test. 248 // Add custom switches needed for running the test.
249 virtual void AddTestSwitches(base::CommandLine* cl); 249 virtual void AddTestSwitches(base::CommandLine* cl);
250 250
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 std::unique_ptr<net::URLFetcherImplFactory> factory_; 459 std::unique_ptr<net::URLFetcherImplFactory> factory_;
460 460
461 // The contents to be written to a profile's Preferences file before the 461 // The contents to be written to a profile's Preferences file before the
462 // Profile object is created. If empty, no preexisting file will be written. 462 // Profile object is created. If empty, no preexisting file will be written.
463 std::string preexisting_preferences_file_contents_; 463 std::string preexisting_preferences_file_contents_;
464 464
465 DISALLOW_COPY_AND_ASSIGN(SyncTest); 465 DISALLOW_COPY_AND_ASSIGN(SyncTest);
466 }; 466 };
467 467
468 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 468 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_extension_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