| 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 "sync/api/sync_change.h" | 5 #include "sync/api/sync_change.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "sync/api/attachments/attachment_id.h" | 13 #include "sync/api/attachments/attachment_id.h" |
| 14 #include "sync/api/attachments/attachment_service_proxy_for_test.h" | 14 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" |
| 15 #include "sync/protocol/preference_specifics.pb.h" | 15 #include "sync/protocol/preference_specifics.pb.h" |
| 16 #include "sync/protocol/proto_value_conversions.h" | 16 #include "sync/protocol/proto_value_conversions.h" |
| 17 #include "sync/protocol/sync.pb.h" | 17 #include "sync/protocol/sync.pb.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 namespace syncer { | 20 namespace syncer { |
| 21 | 21 |
| 22 // Ordered list of SyncChange's. | 22 // Ordered list of SyncChange's. |
| 23 typedef std::vector<SyncChange> SyncChangeList; | 23 typedef std::vector<SyncChange> SyncChangeList; |
| 24 | 24 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type()); | 151 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type()); |
| 152 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); | 152 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); |
| 153 ref_spec.reset(EntitySpecificsToValue(delete_specifics)); | 153 ref_spec.reset(EntitySpecificsToValue(delete_specifics)); |
| 154 e_spec.reset(EntitySpecificsToValue(e.sync_data().GetSpecifics())); | 154 e_spec.reset(EntitySpecificsToValue(e.sync_data().GetSpecifics())); |
| 155 EXPECT_TRUE(ref_spec->Equals(e_spec.get())); | 155 EXPECT_TRUE(ref_spec->Equals(e_spec.get())); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace | 158 } // namespace |
| 159 | 159 |
| 160 } // namespace syncer | 160 } // namespace syncer |
| OLD | NEW |