Fabric: ShadowNode::getChildren() now returns vector, not shared_ptr

Summary: TBD

Reviewed By: mdvacca

Differential Revision: D8988385

fbshipit-source-id: 1d1c7e0b87b32b242c69bbce44cf70fb0899cf93
This commit is contained in:
Valentin Shergin
2018-08-04 09:30:24 -07:00
committed by Facebook Github Bot
parent ca6d263d6d
commit d74346b616
9 changed files with 39 additions and 39 deletions

View File

@@ -59,8 +59,8 @@ TEST(ComponentDescriptorTest, appendChild) {
descriptor->appendChild(node1, node2);
descriptor->appendChild(node1, node3);
SharedShadowNodeSharedList node1Children = node1->getChildren();
ASSERT_EQ(node1Children->size(), 2);
ASSERT_EQ(node1Children->at(0), node2);
ASSERT_EQ(node1Children->at(1), node3);
auto node1Children = node1->getChildren();
ASSERT_EQ(node1Children.size(), 2);
ASSERT_EQ(node1Children.at(0), node2);
ASSERT_EQ(node1Children.at(1), node3);
}