Home
last modified time | relevance | path

Searched refs:mapping2 (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/mojo/embedder/
Dsimple_platform_shared_buffer_unittest.cc55 scoped_ptr<PlatformSharedBufferMapping> mapping2( in TEST() local
57 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() local
149 EXPECT_NE(mapping1->GetBase(), mapping2->GetBase()); in TEST()
169 scoped_ptr<PlatformSharedBufferMapping> mapping2; in TEST() local
175 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()
/external/chromium_org/mojo/system/
Dshared_buffer_dispatcher_unittest.cc138 scoped_ptr<embedder::PlatformSharedBufferMapping> mapping2; in TEST_F() local
141 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()