| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync_change.h" | 5 #include "components/sync/model/sync_change.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "components/sync/api/attachments/attachment_id.h" | 12 #include "components/sync/model/attachments/attachment_id.h" |
| 13 #include "components/sync/api/attachments/attachment_service_proxy_for_test.h" | 13 #include "components/sync/model/attachments/attachment_service_proxy_for_test.h" |
| 14 #include "components/sync/protocol/preference_specifics.pb.h" | 14 #include "components/sync/protocol/preference_specifics.pb.h" |
| 15 #include "components/sync/protocol/proto_value_conversions.h" | 15 #include "components/sync/protocol/proto_value_conversions.h" |
| 16 #include "components/sync/protocol/sync.pb.h" | 16 #include "components/sync/protocol/sync.pb.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace syncer { | 19 namespace syncer { |
| 20 | 20 |
| 21 // Ordered list of SyncChange's. | 21 // Ordered list of SyncChange's. |
| 22 typedef std::vector<SyncChange> SyncChangeList; | 22 typedef std::vector<SyncChange> SyncChangeList; |
| 23 | 23 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type()); | 137 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type()); |
| 138 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); | 138 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); |
| 139 ref_spec = EntitySpecificsToValue(delete_specifics); | 139 ref_spec = EntitySpecificsToValue(delete_specifics); |
| 140 e_spec = EntitySpecificsToValue(e.sync_data().GetSpecifics()); | 140 e_spec = EntitySpecificsToValue(e.sync_data().GetSpecifics()); |
| 141 EXPECT_TRUE(ref_spec->Equals(e_spec.get())); | 141 EXPECT_TRUE(ref_spec->Equals(e_spec.get())); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace | 144 } // namespace |
| 145 | 145 |
| 146 } // namespace syncer | 146 } // namespace syncer |
| OLD | NEW |