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 #include "components/sync/api/fake_model_type_service.h" | 5 #include "components/sync/api/fake_model_type_service.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
9 #include "components/sync/core/data_batch_impl.h" | 11 #include "components/sync/core/data_batch_impl.h" |
10 #include "components/sync/core/simple_metadata_change_list.h" | 12 #include "components/sync/core/simple_metadata_change_list.h" |
11 #include "components/sync/syncable/syncable_util.h" | 13 #include "components/sync/syncable/syncable_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
13 | 15 |
14 using sync_pb::EntitySpecifics; | 16 using sync_pb::EntitySpecifics; |
15 using sync_pb::EntityMetadata; | 17 using sync_pb::EntityMetadata; |
16 using sync_pb::DataTypeState; | 18 using sync_pb::DataTypeState; |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 void FakeModelTypeService::SetConflictResolution( | 312 void FakeModelTypeService::SetConflictResolution( |
311 ConflictResolution resolution) { | 313 ConflictResolution resolution) { |
312 conflict_resolution_.reset(new ConflictResolution(std::move(resolution))); | 314 conflict_resolution_.reset(new ConflictResolution(std::move(resolution))); |
313 } | 315 } |
314 | 316 |
315 void FakeModelTypeService::CheckPostConditions() { | 317 void FakeModelTypeService::CheckPostConditions() { |
316 DCHECK(!service_error_.IsSet()); | 318 DCHECK(!service_error_.IsSet()); |
317 } | 319 } |
318 | 320 |
319 } // namespace syncer | 321 } // namespace syncer |
OLD | NEW |