| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/syncable/parent_child_index.h" | 5 #include "components/sync/syncable/parent_child_index.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | |
| 9 | 8 |
| 10 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 11 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 12 #include "components/sync/syncable/entry_kernel.h" | 11 #include "components/sync/syncable/entry_kernel.h" |
| 13 #include "components/sync/syncable/syncable_util.h" | 12 #include "components/sync/syncable/syncable_util.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 14 |
| 16 namespace syncer { | 15 namespace syncer { |
| 17 namespace syncable { | 16 namespace syncable { |
| 18 | 17 |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 const OrderedChildSet* children = index_.GetChildren(type_root_id); | 510 const OrderedChildSet* children = index_.GetChildren(type_root_id); |
| 512 ASSERT_TRUE(children); | 511 ASSERT_TRUE(children); |
| 513 EXPECT_EQ(2UL, children->size()); | 512 EXPECT_EQ(2UL, children->size()); |
| 514 const OrderedChildSet* children_bad = index_.GetChildren(bad_type_root_id); | 513 const OrderedChildSet* children_bad = index_.GetChildren(bad_type_root_id); |
| 515 ASSERT_TRUE(children_bad); | 514 ASSERT_TRUE(children_bad); |
| 516 EXPECT_EQ(2UL, children_bad->size()); | 515 EXPECT_EQ(2UL, children_bad->size()); |
| 517 } | 516 } |
| 518 | 517 |
| 519 } // namespace syncable | 518 } // namespace syncable |
| 520 } // namespace syncer | 519 } // namespace syncer |
| OLD | NEW |