| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/sync_driver/sync_service.h" | 10 #include "components/sync_driver/sync_service.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class FakeSyncService : public sync_driver::SyncService { | 22 class FakeSyncService : public sync_driver::SyncService { |
| 23 public: | 23 public: |
| 24 FakeSyncService(); | 24 FakeSyncService(); |
| 25 ~FakeSyncService() override; | 25 ~FakeSyncService() override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // sync_driver::SyncService: | 28 // sync_driver::SyncService: |
| 29 bool HasSyncSetupCompleted() const override; | 29 bool HasSyncSetupCompleted() const override; |
| 30 bool IsSyncAllowed() const override; | 30 bool IsSyncAllowed() const override; |
| 31 bool IsSyncActive() const override; | 31 bool IsSyncActive() const override; |
| 32 void TriggerRefresh(const syncer::ModelTypeSet& types) override; |
| 32 syncer::ModelTypeSet GetActiveDataTypes() const override; | 33 syncer::ModelTypeSet GetActiveDataTypes() const override; |
| 33 SyncClient* GetSyncClient() const override; | 34 SyncClient* GetSyncClient() const override; |
| 34 void AddObserver(SyncServiceObserver* observer) override; | 35 void AddObserver(SyncServiceObserver* observer) override; |
| 35 void RemoveObserver(SyncServiceObserver* observer) override; | 36 void RemoveObserver(SyncServiceObserver* observer) override; |
| 36 bool HasObserver(const SyncServiceObserver* observer) const override; | 37 bool HasObserver(const SyncServiceObserver* observer) const override; |
| 37 void OnDataTypeRequestsSyncStartup(syncer::ModelType type) override; | 38 void OnDataTypeRequestsSyncStartup(syncer::ModelType type) override; |
| 38 bool CanSyncStart() const override; | 39 bool CanSyncStart() const override; |
| 39 void RequestStop( | 40 void RequestStop( |
| 40 sync_driver::SyncService::SyncStopDataFate data_fate) override; | 41 sync_driver::SyncService::SyncStopDataFate data_fate) override; |
| 41 void RequestStart() override; | 42 void RequestStart() override; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 95 |
| 95 GoogleServiceAuthError error_; | 96 GoogleServiceAuthError error_; |
| 96 GURL sync_service_url_; | 97 GURL sync_service_url_; |
| 97 std::string unrecoverable_error_message_; | 98 std::string unrecoverable_error_message_; |
| 98 scoped_ptr<syncer::UserShare> user_share_; | 99 scoped_ptr<syncer::UserShare> user_share_; |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace sync_driver | 102 } // namespace sync_driver |
| 102 | 103 |
| 103 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ | 104 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ |
| OLD | NEW |