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

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

Issue 10483015: [Sync] Refactor sync configuration logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 const base::WeakPtr<SyncPrefs>& sync_prefs, 38 const base::WeakPtr<SyncPrefs>& sync_prefs,
39 const base::WeakPtr<InvalidatorStorage>& invalidator_storage, 39 const base::WeakPtr<InvalidatorStorage>& invalidator_storage,
40 bool set_initial_sync_ended_on_init, 40 bool set_initial_sync_ended_on_init,
41 bool synchronous_init, 41 bool synchronous_init,
42 bool fail_initial_download, 42 bool fail_initial_download,
43 bool use_real_database); 43 bool use_real_database);
44 virtual ~SyncBackendHostForProfileSyncTest(); 44 virtual ~SyncBackendHostForProfileSyncTest();
45 45
46 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); 46 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&));
47 47
48 // Called when a nudge comes in. 48 virtual void RequestConfigureSyncer(
49 void SimulateSyncCycleCompletedInitialSyncEnded( 49 sync_api::ConfigureReason reason,
50 const tracked_objects::Location&); 50 syncable::ModelTypeSet types_to_config,
51 51 const browser_sync::ModelSafeRoutingInfo routing_info,
52 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE; 52 const base::Callback<void(syncable::ModelTypeSet)>& ready_task,
53 const base::Closure& retry_callback) OVERRIDE;
53 54
54 static void SetHistoryServiceExpectations(ProfileMock* profile); 55 static void SetHistoryServiceExpectations(ProfileMock* profile);
55 56
56 protected: 57 protected:
57 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; 58 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE;
58 59
59 private: 60 private:
60 bool synchronous_init_; 61 bool synchronous_init_;
61 bool fail_initial_download_; 62 bool fail_initial_download_;
62 bool use_real_database_; 63 bool use_real_database_;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 base::Closure callback_; 122 base::Closure callback_;
122 bool set_initial_sync_ended_on_init_; 123 bool set_initial_sync_ended_on_init_;
123 124
124 bool fail_initial_download_; 125 bool fail_initial_download_;
125 bool use_real_database_; 126 bool use_real_database_;
126 }; 127 };
127 128
128 129
129 130
130 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 131 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698