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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 virtual void HandleSyncManagerInitializationOnFrontendLoop( | 58 virtual void HandleSyncManagerInitializationOnFrontendLoop( |
59 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 59 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
60 bool success, | 60 bool success, |
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 EmitOnInvalidatorStateChange(syncer::InvalidatorState state); |
68 void EmitOnNotificationsDisabled( | 68 void EmitOnIncomingInvalidation( |
69 syncer::NotificationsDisabledReason reason); | |
70 void EmitOnIncomingNotification( | |
71 const syncer::ObjectIdStateMap& id_state_map, | 69 const syncer::ObjectIdStateMap& id_state_map, |
72 const syncer::IncomingNotificationSource source); | 70 const syncer::IncomingInvalidationSource source); |
73 | 71 |
74 protected: | 72 protected: |
75 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; | 73 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; |
76 | 74 |
77 private: | 75 private: |
78 syncer::TestIdFactory& id_factory_; | 76 syncer::TestIdFactory& id_factory_; |
79 base::Closure& callback_; | 77 base::Closure& callback_; |
80 | 78 |
81 bool set_initial_sync_ended_on_init_; | 79 bool set_initial_sync_ended_on_init_; |
82 bool synchronous_init_; | 80 bool synchronous_init_; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool synchronous_sync_configuration_; | 139 bool synchronous_sync_configuration_; |
142 | 140 |
143 base::Closure callback_; | 141 base::Closure callback_; |
144 bool set_initial_sync_ended_on_init_; | 142 bool set_initial_sync_ended_on_init_; |
145 | 143 |
146 bool fail_initial_download_; | 144 bool fail_initial_download_; |
147 syncer::StorageOption storage_option_; | 145 syncer::StorageOption storage_option_; |
148 }; | 146 }; |
149 | 147 |
150 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 148 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |