Lines Matching refs:mapping2
128 std::unique_ptr<PlatformSharedMemoryMapping> mapping2;
129 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->MapBuffer(50, 50, &mapping2));
130 ASSERT_TRUE(mapping2);
131 ASSERT_TRUE(mapping2->GetBase());
132 EXPECT_EQ(50u, mapping2->GetLength());
133 EXPECT_EQ('x', static_cast<char*>(mapping2->GetBase())[0]);
139 static_cast<char*>(mapping2->GetBase())[1] = 'y';
165 std::unique_ptr<PlatformSharedMemoryMapping> mapping2;
166 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->MapBuffer(50, 50, &mapping2));
167 ASSERT_TRUE(mapping2);
168 ASSERT_TRUE(mapping2->GetBase());
169 EXPECT_EQ(50u, mapping2->GetLength());
170 EXPECT_EQ('x', static_cast<char*>(mapping2->GetBase())[0]);
176 static_cast<char*>(mapping2->GetBase())[1] = 'y';