| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include "components/sync/api/model_type_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "components/sync/api/data_type_error_handler_mock.h" | 9 #include "components/sync/api/data_type_error_handler_mock.h" |
| 10 #include "components/sync/api/fake_model_type_change_processor.h" | 10 #include "components/sync/api/fake_model_type_change_processor.h" |
| 11 #include "components/sync/api/stub_model_type_service.h" | 11 #include "components/sync/api/stub_model_type_service.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace syncer { | 14 namespace syncer { |
| 15 | 15 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 service()->ResolveConflict(local_data, remote_data).type()); | 146 service()->ResolveConflict(local_data, remote_data).type()); |
| 147 | 147 |
| 148 local_data.specifics.clear_preference(); | 148 local_data.specifics.clear_preference(); |
| 149 EXPECT_TRUE(local_data.is_deleted()); | 149 EXPECT_TRUE(local_data.is_deleted()); |
| 150 EXPECT_FALSE(remote_data.is_deleted()); | 150 EXPECT_FALSE(remote_data.is_deleted()); |
| 151 EXPECT_EQ(ConflictResolution::USE_REMOTE, | 151 EXPECT_EQ(ConflictResolution::USE_REMOTE, |
| 152 service()->ResolveConflict(local_data, remote_data).type()); | 152 service()->ResolveConflict(local_data, remote_data).type()); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace syncer | 155 } // namespace syncer |
| OLD | NEW |