OLD | NEW |
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 Loading... |
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 // Called when a nudge comes in. | 47 virtual void RequestConfigureSyncer( |
48 void SimulateSyncCycleCompletedInitialSyncEnded( | 48 syncer::ConfigureReason reason, |
49 const tracked_objects::Location&); | 49 syncer::ModelTypeSet types_to_config, |
50 | 50 const syncer::ModelSafeRoutingInfo& routing_info, |
51 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE; | 51 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, |
| 52 const base::Closure& retry_callback) OVERRIDE; |
52 | 53 |
53 static void SetHistoryServiceExpectations(ProfileMock* profile); | 54 static void SetHistoryServiceExpectations(ProfileMock* profile); |
54 | 55 |
55 protected: | 56 protected: |
56 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; | 57 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; |
57 | 58 |
58 private: | 59 private: |
59 bool synchronous_init_; | 60 bool synchronous_init_; |
60 bool fail_initial_download_; | 61 bool fail_initial_download_; |
61 bool use_real_database_; | 62 bool use_real_database_; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 base::Closure callback_; | 120 base::Closure callback_; |
120 bool set_initial_sync_ended_on_init_; | 121 bool set_initial_sync_ended_on_init_; |
121 | 122 |
122 bool fail_initial_download_; | 123 bool fail_initial_download_; |
123 bool use_real_database_; | 124 bool use_real_database_; |
124 }; | 125 }; |
125 | 126 |
126 | 127 |
127 | 128 |
128 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 129 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |