| 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 "base/macros.h" |
| 8 #include "components/sync_driver/sync_client.h" | 9 #include "components/sync_driver/sync_client.h" |
| 9 | 10 |
| 10 namespace sync_driver { | 11 namespace sync_driver { |
| 11 class FakeSyncService; | 12 class FakeSyncService; |
| 12 | 13 |
| 13 // Fake implementation of SyncClient interface for tests. | 14 // Fake implementation of SyncClient interface for tests. |
| 14 class FakeSyncClient : public SyncClient { | 15 class FakeSyncClient : public SyncClient { |
| 15 public: | 16 public: |
| 16 FakeSyncClient(); | 17 FakeSyncClient(); |
| 17 explicit FakeSyncClient(SyncApiComponentFactory* factory); | 18 explicit FakeSyncClient(SyncApiComponentFactory* factory); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 43 private: | 44 private: |
| 44 SyncApiComponentFactory* factory_; | 45 SyncApiComponentFactory* factory_; |
| 45 scoped_ptr<FakeSyncService> sync_service_; | 46 scoped_ptr<FakeSyncService> sync_service_; |
| 46 | 47 |
| 47 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); | 48 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace sync_driver | 51 } // namespace sync_driver |
| 51 | 52 |
| 52 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ | 53 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
| OLD | NEW |