| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 syncer::ModelTypeSet restored_types) OVERRIDE; | 60 syncer::ModelTypeSet restored_types) OVERRIDE; |
| 61 | 61 |
| 62 static void SetHistoryServiceExpectations(ProfileMock* profile); | 62 static void SetHistoryServiceExpectations(ProfileMock* profile); |
| 63 | 63 |
| 64 void SetInitialSyncEndedForAllTypes(); | 64 void SetInitialSyncEndedForAllTypes(); |
| 65 | 65 |
| 66 void EmitOnNotificationsEnabled(); | 66 void EmitOnNotificationsEnabled(); |
| 67 void EmitOnNotificationsDisabled( | 67 void EmitOnNotificationsDisabled( |
| 68 syncer::NotificationsDisabledReason reason); | 68 syncer::NotificationsDisabledReason reason); |
| 69 void EmitOnIncomingNotification( | 69 void EmitOnIncomingNotification( |
| 70 const syncer::ObjectIdPayloadMap& id_payloads, | 70 const syncer::ObjectIdStateMap& id_state_map, |
| 71 const syncer::IncomingNotificationSource source); | 71 const syncer::IncomingNotificationSource source); |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; | 74 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 syncer::TestIdFactory& id_factory_; | 77 syncer::TestIdFactory& id_factory_; |
| 78 base::Closure& callback_; | 78 base::Closure& callback_; |
| 79 | 79 |
| 80 bool set_initial_sync_ended_on_init_; | 80 bool set_initial_sync_ended_on_init_; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 bool synchronous_sync_configuration_; | 141 bool synchronous_sync_configuration_; |
| 142 | 142 |
| 143 base::Closure callback_; | 143 base::Closure callback_; |
| 144 bool set_initial_sync_ended_on_init_; | 144 bool set_initial_sync_ended_on_init_; |
| 145 | 145 |
| 146 bool fail_initial_download_; | 146 bool fail_initial_download_; |
| 147 syncer::StorageOption storage_option_; | 147 syncer::StorageOption storage_option_; |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 150 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |