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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 syncer::ModelTypeSet restored_types) OVERRIDE; | 61 syncer::ModelTypeSet restored_types) OVERRIDE; |
62 | 62 |
63 static void SetHistoryServiceExpectations(ProfileMock* profile); | 63 static void SetHistoryServiceExpectations(ProfileMock* profile); |
64 | 64 |
65 void SetInitialSyncEndedForAllTypes(); | 65 void SetInitialSyncEndedForAllTypes(); |
66 | 66 |
67 void EmitOnNotificationsEnabled(); | 67 void EmitOnNotificationsEnabled(); |
68 void EmitOnNotificationsDisabled( | 68 void EmitOnNotificationsDisabled( |
69 syncer::NotificationsDisabledReason reason); | 69 syncer::NotificationsDisabledReason reason); |
70 void EmitOnIncomingNotification( | 70 void EmitOnIncomingNotification( |
71 const syncer::ObjectIdPayloadMap& id_payloads, | 71 const syncer::ObjectIdStateMap& id_state_map, |
72 const syncer::IncomingNotificationSource source); | 72 const syncer::IncomingNotificationSource source); |
73 | 73 |
74 protected: | 74 protected: |
75 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; | 75 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; |
76 | 76 |
77 private: | 77 private: |
78 syncer::TestIdFactory& id_factory_; | 78 syncer::TestIdFactory& id_factory_; |
79 base::Closure& callback_; | 79 base::Closure& callback_; |
80 | 80 |
81 bool set_initial_sync_ended_on_init_; | 81 bool set_initial_sync_ended_on_init_; |
(...skipping 59 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 |