| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GENERIC_CHANGE_PROCESSOR_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ | 6 #define COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 bool sync_model_has_user_created_nodes_; | 42 bool sync_model_has_user_created_nodes_; |
| 43 bool sync_model_has_user_created_nodes_success_; | 43 bool sync_model_has_user_created_nodes_success_; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 // Define a factory for FakeGenericChangeProcessor for convenience. | 46 // Define a factory for FakeGenericChangeProcessor for convenience. |
| 47 class FakeGenericChangeProcessorFactory : public GenericChangeProcessorFactory { | 47 class FakeGenericChangeProcessorFactory : public GenericChangeProcessorFactory { |
| 48 public: | 48 public: |
| 49 explicit FakeGenericChangeProcessorFactory( | 49 explicit FakeGenericChangeProcessorFactory( |
| 50 scoped_ptr<FakeGenericChangeProcessor> processor); | 50 std::unique_ptr<FakeGenericChangeProcessor> processor); |
| 51 ~FakeGenericChangeProcessorFactory() override; | 51 ~FakeGenericChangeProcessorFactory() override; |
| 52 scoped_ptr<GenericChangeProcessor> CreateGenericChangeProcessor( | 52 std::unique_ptr<GenericChangeProcessor> CreateGenericChangeProcessor( |
| 53 syncer::ModelType type, | 53 syncer::ModelType type, |
| 54 syncer::UserShare* user_share, | 54 syncer::UserShare* user_share, |
| 55 DataTypeErrorHandler* error_handler, | 55 DataTypeErrorHandler* error_handler, |
| 56 const base::WeakPtr<syncer::SyncableService>& local_service, | 56 const base::WeakPtr<syncer::SyncableService>& local_service, |
| 57 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, | 57 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, |
| 58 SyncClient* sync_client) override; | 58 SyncClient* sync_client) override; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 scoped_ptr<FakeGenericChangeProcessor> processor_; | 61 std::unique_ptr<FakeGenericChangeProcessor> processor_; |
| 62 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); | 62 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace sync_driver | 65 } // namespace sync_driver |
| 66 | 66 |
| 67 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ | 67 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ |
| OLD | NEW |