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

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.h

Issue 10689185: Revert 146262 - Revert "Revert 142517 - [Sync] Refactor sync configuration logic." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 26 matching lines...) Expand all
37 const base::WeakPtr<SyncPrefs>& sync_prefs, 37 const base::WeakPtr<SyncPrefs>& sync_prefs,
38 const base::WeakPtr<InvalidatorStorage>& invalidator_storage, 38 const base::WeakPtr<InvalidatorStorage>& invalidator_storage,
39 bool set_initial_sync_ended_on_init, 39 bool set_initial_sync_ended_on_init,
40 bool synchronous_init, 40 bool synchronous_init,
41 bool fail_initial_download, 41 bool fail_initial_download,
42 bool use_real_database); 42 bool use_real_database);
43 virtual ~SyncBackendHostForProfileSyncTest(); 43 virtual ~SyncBackendHostForProfileSyncTest();
44 44
45 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); 45 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&));
46 46
47 virtual void RequestConfigureSyncer( 47 // Called when a nudge comes in.
48 syncer::ConfigureReason reason, 48 void SimulateSyncCycleCompletedInitialSyncEnded(
49 syncer::ModelTypeSet types_to_config, 49 const tracked_objects::Location&);
50 const syncer::ModelSafeRoutingInfo& routing_info, 50
51 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, 51 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE;
52 const base::Closure& retry_callback) OVERRIDE;
53 52
54 static void SetHistoryServiceExpectations(ProfileMock* profile); 53 static void SetHistoryServiceExpectations(ProfileMock* profile);
55 54
56 protected: 55 protected:
57 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; 56 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE;
58 57
59 private: 58 private:
60 bool synchronous_init_; 59 bool synchronous_init_;
61 bool fail_initial_download_; 60 bool fail_initial_download_;
62 bool use_real_database_; 61 bool use_real_database_;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 base::Closure callback_; 119 base::Closure callback_;
121 bool set_initial_sync_ended_on_init_; 120 bool set_initial_sync_ended_on_init_;
122 121
123 bool fail_initial_download_; 122 bool fail_initial_download_;
124 bool use_real_database_; 123 bool use_real_database_;
125 }; 124 };
126 125
127 126
128 127
129 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 128 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698