Lines Matching refs:AddComponent
83 EXPECT_TRUE(manager->AddComponent("", "comp1", {"t1"}, nullptr)); in CreateTestComponentTree()
89 manager->AddComponent("comp1.comp2[1]", "comp3", {"t4"}, nullptr)); in CreateTestComponentTree()
90 EXPECT_TRUE(manager->AddComponent("comp1.comp2[1].comp3", "comp4", in CreateTestComponentTree()
441 TEST_F(ComponentManagerTest, AddComponent) { in TEST_F() argument
446 manager_.AddComponent("", "comp1", {"trait1", "trait2"}, nullptr)); in TEST_F()
447 EXPECT_TRUE(manager_.AddComponent("", "comp2", {"trait3"}, nullptr)); in TEST_F()
459 EXPECT_FALSE(manager_.AddComponent("", "comp3", {"trait4"}, nullptr)); in TEST_F()
463 EXPECT_TRUE(manager_.AddComponent("", "comp1", {}, nullptr)); in TEST_F()
464 EXPECT_TRUE(manager_.AddComponent("comp1", "comp2", {}, nullptr)); in TEST_F()
465 EXPECT_TRUE(manager_.AddComponent("comp1", "comp3", {}, nullptr)); in TEST_F()
466 EXPECT_TRUE(manager_.AddComponent("comp1.comp2", "comp4", {}, nullptr)); in TEST_F()
493 EXPECT_TRUE(manager_.AddComponent("", "comp1", {}, nullptr)); in TEST_F()
498 EXPECT_TRUE(manager_.AddComponent("comp1.comp2[1]", "comp3", {}, nullptr)); in TEST_F()
500 manager_.AddComponent("comp1.comp2[1].comp3", "comp4", {}, nullptr)); in TEST_F()
572 EXPECT_TRUE(manager_.AddComponent("", "comp1", {}, nullptr)); in TEST_F()
573 EXPECT_FALSE(manager_.AddComponent("", "comp1", {}, nullptr)); in TEST_F()
574 EXPECT_TRUE(manager_.AddComponent("comp1", "comp2", {}, nullptr)); in TEST_F()
575 EXPECT_FALSE(manager_.AddComponent("comp1", "comp2", {}, nullptr)); in TEST_F()
579 EXPECT_FALSE(manager_.AddComponent("comp1", "comp2", {}, nullptr)); in TEST_F()
590 EXPECT_TRUE(manager_.AddComponent("", "comp1", {}, nullptr)); in TEST_F()
592 EXPECT_TRUE(manager_.AddComponent("comp1", "comp2", {}, nullptr)); in TEST_F()
594 EXPECT_TRUE(manager_.AddComponent("comp1.comp2", "comp4", {}, nullptr)); in TEST_F()
679 ASSERT_TRUE(manager_.AddComponent("", "comp1", {"trait1"}, nullptr)); in TEST_F()
680 ASSERT_TRUE(manager_.AddComponent("", "comp2", {"trait2"}, nullptr)); in TEST_F()
769 ASSERT_TRUE(manager_.AddComponent("", "comp1", {"trait1"}, nullptr)); in TEST_F()
803 ASSERT_TRUE(manager_.AddComponent("", "comp1", {"trait1"}, nullptr)); in TEST_F()
805 manager_.AddComponent("", "comp2", {"trait1", "trait2"}, nullptr)); in TEST_F()
875 ASSERT_TRUE(manager_.AddComponent("", "comp", {"trait1", "trait2"}, nullptr)); in TEST_F()
1066 manager_.AddComponent("", "comp1", {"trait1", "trait2"}, nullptr)); in TEST_F()
1124 ASSERT_TRUE(manager_.AddComponent("", "comp1", {"trait1"}, nullptr)); in TEST_F()
1170 manager_.AddComponent("", "comp1", {"trait1", "trait2"}, nullptr)); in TEST_F()
1172 manager_.AddComponent("", "comp2", {"trait1", "trait2"}, nullptr)); in TEST_F()
1256 manager_.AddComponent("", "comp1", {"trait1", "trait2"}, nullptr)); in TEST_F()
1257 ASSERT_TRUE(manager_.AddComponent("", "comp2", {"trait3"}, nullptr)); in TEST_F()
1461 ASSERT_TRUE(manager_.AddComponent("", "comp1", {"trait1"}, nullptr)); in TEST_F()
1462 ASSERT_TRUE(manager_.AddComponent("", "comp2", {"trait2"}, nullptr)); in TEST_F()