| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, | 53 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, |
| 54 const base::Closure& retry_callback) OVERRIDE; | 54 const base::Closure& retry_callback) OVERRIDE; |
| 55 | 55 |
| 56 virtual void HandleSyncManagerInitializationOnFrontendLoop( | 56 virtual void HandleSyncManagerInitializationOnFrontendLoop( |
| 57 const syncer::WeakHandle<syncer::JsBackend>& js_backend, bool success, | 57 const syncer::WeakHandle<syncer::JsBackend>& js_backend, bool success, |
| 58 syncer::ModelTypeSet restored_types) OVERRIDE; | 58 syncer::ModelTypeSet restored_types) OVERRIDE; |
| 59 | 59 |
| 60 static void SetHistoryServiceExpectations(ProfileMock* profile); | 60 static void SetHistoryServiceExpectations(ProfileMock* profile); |
| 61 | 61 |
| 62 void SetInitialSyncEndedForAllTypes(); | 62 void SetInitialSyncEndedForAllTypes(); |
| 63 void dont_set_initial_sync_ended_on_init(); | 63 |
| 64 void EmitOnNotificationsEnabled(); |
| 65 void EmitOnNotificationsDisabled( |
| 66 syncer::NotificationsDisabledReason reason); |
| 67 void EmitOnIncomingNotification( |
| 68 const syncer::ObjectIdPayloadMap& id_payloads, |
| 69 const syncer::IncomingNotificationSource source); |
| 64 | 70 |
| 65 protected: | 71 protected: |
| 66 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; | 72 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; |
| 67 | 73 |
| 68 private: | 74 private: |
| 69 syncer::TestIdFactory& id_factory_; | 75 syncer::TestIdFactory& id_factory_; |
| 70 base::Closure& callback_; | 76 base::Closure& callback_; |
| 71 | 77 |
| 72 bool set_initial_sync_ended_on_init_; | 78 bool set_initial_sync_ended_on_init_; |
| 73 bool synchronous_init_; | 79 bool synchronous_init_; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 bool synchronous_sync_configuration_; | 139 bool synchronous_sync_configuration_; |
| 134 | 140 |
| 135 base::Closure callback_; | 141 base::Closure callback_; |
| 136 bool set_initial_sync_ended_on_init_; | 142 bool set_initial_sync_ended_on_init_; |
| 137 | 143 |
| 138 bool fail_initial_download_; | 144 bool fail_initial_download_; |
| 139 bool use_real_database_; | 145 bool use_real_database_; |
| 140 }; | 146 }; |
| 141 | 147 |
| 142 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 148 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |