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

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

Issue 2716413003: Initial clear server data impl (Closed)
Patch Set: Responding to CL comments. Some Logic changes, but mostly spelling/comments. Created 3 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
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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // of test being run and command line args passed in. 363 // of test being run and command line args passed in.
364 void DecideServerType(); 364 void DecideServerType();
365 365
366 // Initializes any custom services needed for the |profile| at |index|. 366 // Initializes any custom services needed for the |profile| at |index|.
367 void InitializeProfile(int index, Profile* profile); 367 void InitializeProfile(int index, Profile* profile);
368 368
369 // Sets up the client-side invalidations infrastructure depending on the 369 // Sets up the client-side invalidations infrastructure depending on the
370 // value of |server_type_|. 370 // value of |server_type_|.
371 void InitializeInvalidations(int index); 371 void InitializeInvalidations(int index);
372 372
373 // Setup profile, clear server data, and restart sync.
skym 2017/03/07 21:32:25 It doesn't seem like the implementation actually s
wylieb 2017/03/07 23:04:40 Done.
374 void ClearServerData(ProfileSyncServiceHarness* harness);
375
373 // Python sync test server, started on demand. 376 // Python sync test server, started on demand.
374 syncer::LocalSyncTestServer sync_server_; 377 syncer::LocalSyncTestServer sync_server_;
375 378
376 // Helper class to whitelist the notification port. 379 // Helper class to whitelist the notification port.
377 std::unique_ptr<net::ScopedPortException> xmpp_port_; 380 std::unique_ptr<net::ScopedPortException> xmpp_port_;
378 381
379 // Used to differentiate between single-client and two-client tests as well 382 // Used to differentiate between single-client and two-client tests as well
380 // as wher the in-process FakeServer is used. 383 // as wher the in-process FakeServer is used.
381 TestType test_type_; 384 TestType test_type_;
382 385
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 std::unique_ptr<net::URLFetcherImplFactory> factory_; 461 std::unique_ptr<net::URLFetcherImplFactory> factory_;
459 462
460 // The contents to be written to a profile's Preferences file before the 463 // The contents to be written to a profile's Preferences file before the
461 // Profile object is created. If empty, no preexisting file will be written. 464 // Profile object is created. If empty, no preexisting file will be written.
462 std::string preexisting_preferences_file_contents_; 465 std::string preexisting_preferences_file_contents_;
463 466
464 DISALLOW_COPY_AND_ASSIGN(SyncTest); 467 DISALLOW_COPY_AND_ASSIGN(SyncTest);
465 }; 468 };
466 469
467 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 470 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698