| 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_CLIENT_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ | 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "components/sync_driver/sync_client.h" | 11 #include "components/sync/driver/sync_client.h" |
| 12 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 12 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
| 13 | 13 |
| 14 namespace sync_driver { | 14 namespace sync_driver { |
| 15 class FakeSyncService; | 15 class FakeSyncService; |
| 16 | 16 |
| 17 // Fake implementation of SyncClient interface for tests. | 17 // Fake implementation of SyncClient interface for tests. |
| 18 class FakeSyncClient : public SyncClient { | 18 class FakeSyncClient : public SyncClient { |
| 19 public: | 19 public: |
| 20 FakeSyncClient(); | 20 FakeSyncClient(); |
| 21 explicit FakeSyncClient(SyncApiComponentFactory* factory); | 21 explicit FakeSyncClient(SyncApiComponentFactory* factory); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 syncer_v2::ModelTypeService* model_type_service_; | 52 syncer_v2::ModelTypeService* model_type_service_; |
| 53 SyncApiComponentFactory* factory_; | 53 SyncApiComponentFactory* factory_; |
| 54 std::unique_ptr<FakeSyncService> sync_service_; | 54 std::unique_ptr<FakeSyncService> sync_service_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); | 56 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace sync_driver | 59 } // namespace sync_driver |
| 60 | 60 |
| 61 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ | 61 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
| OLD | NEW |