Lines Matching refs:name2
78 MailboxName name2;
79 manager_->GenerateMailboxName(&name2);
80 EXPECT_TRUE(manager_->ProduceTexture(0, name2, texture));
84 EXPECT_EQ(texture, manager_->ConsumeTexture(0, name2));
89 EXPECT_EQ(NULL, manager_->ConsumeTexture(0, name2));
122 MailboxName name2;
123 manager_->GenerateMailboxName(&name2);
125 // Put texture1 on name1 and name2.
127 EXPECT_TRUE(manager_->ProduceTexture(0, name2, texture1));
129 EXPECT_EQ(texture1, manager_->ConsumeTexture(0, name2));
131 // Put texture2 on name2.
132 EXPECT_TRUE(manager_->ProduceTexture(0, name2, texture2));
134 EXPECT_EQ(texture2, manager_->ConsumeTexture(0, name2));
136 // Destroy texture1, shouldn't affect name2.
139 EXPECT_EQ(texture2, manager_->ConsumeTexture(0, name2));
142 EXPECT_EQ(NULL, manager_->ConsumeTexture(0, name2));