Searched refs:mapping2 (Results 1 – 2 of 2) sorted by relevance
55 scoped_ptr<PlatformSharedBufferMapping> mapping2( in TEST() local57 ASSERT_TRUE(mapping2); in TEST()58 ASSERT_TRUE(mapping2->GetBase()); in TEST()59 int* stuff2 = static_cast<int*>(mapping2->GetBase()); in TEST()148 scoped_ptr<PlatformSharedBufferMapping> mapping2(buffer->Map(0, 100)); in TEST() local149 EXPECT_NE(mapping1->GetBase(), mapping2->GetBase()); in TEST()169 scoped_ptr<PlatformSharedBufferMapping> mapping2; in TEST() local175 mapping2 = buffer->Map(50, 50).Pass(); in TEST()179 EXPECT_EQ('x', static_cast<char*>(mapping2->GetBase())[0]); in TEST()181 static_cast<char*>(mapping2->GetBase())[1] = 'y'; in TEST()
138 scoped_ptr<embedder::PlatformSharedBufferMapping> mapping2; in TEST_F() local141 dispatcher->MapBuffer(50, 50, MOJO_MAP_BUFFER_FLAG_NONE, &mapping2)); in TEST_F()142 ASSERT_TRUE(mapping2); in TEST_F()143 ASSERT_TRUE(mapping2->GetBase()); in TEST_F()144 EXPECT_EQ(50u, mapping2->GetLength()); in TEST_F()145 EXPECT_EQ('x', static_cast<char*>(mapping2->GetBase())[0]); in TEST_F()151 static_cast<char*>(mapping2->GetBase())[1] = 'y'; in TEST_F()