Home | History | Annotate | Download | only in src

Lines Matching refs:AddComponent

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