| 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 "sync/api/entity_data.h" | 5 #include "components/sync/api/entity_data.h" |
| 6 | 6 |
| 7 #include "sync/internal_api/public/base/model_type.h" | 7 #include "components/sync/base/model_type.h" |
| 8 #include "sync/internal_api/public/base/unique_position.h" | 8 #include "components/sync/base/unique_position.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace syncer_v2 { | 11 namespace syncer_v2 { |
| 12 | 12 |
| 13 class EntityDataTest : public testing::Test { | 13 class EntityDataTest : public testing::Test { |
| 14 protected: | 14 protected: |
| 15 EntityDataTest() {} | 15 EntityDataTest() {} |
| 16 ~EntityDataTest() override {} | 16 ~EntityDataTest() override {} |
| 17 }; | 17 }; |
| 18 | 18 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // Compare other fields. | 56 // Compare other fields. |
| 57 EXPECT_EQ("id", ptr->id); | 57 EXPECT_EQ("id", ptr->id); |
| 58 EXPECT_EQ("client_tag_hash", ptr->client_tag_hash); | 58 EXPECT_EQ("client_tag_hash", ptr->client_tag_hash); |
| 59 EXPECT_EQ("non_unique_name", ptr->non_unique_name); | 59 EXPECT_EQ("non_unique_name", ptr->non_unique_name); |
| 60 EXPECT_EQ("parent_id", ptr->parent_id); | 60 EXPECT_EQ("parent_id", ptr->parent_id); |
| 61 EXPECT_EQ(base::Time::FromTimeT(10), ptr->creation_time); | 61 EXPECT_EQ(base::Time::FromTimeT(10), ptr->creation_time); |
| 62 EXPECT_EQ(base::Time::FromTimeT(20), ptr->modification_time); | 62 EXPECT_EQ(base::Time::FromTimeT(20), ptr->modification_time); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace syncer_v2 | 65 } // namespace syncer_v2 |
| OLD | NEW |