Searched refs:mapping1 (Results 1 – 3 of 3) sorted by relevance
/external/chromium_org/mojo/embedder/ |
D | simple_platform_shared_buffer_unittest.cc | 47 scoped_ptr<PlatformSharedBufferMapping> mapping1( in TEST() local 49 ASSERT_TRUE(mapping1); in TEST() 50 ASSERT_TRUE(mapping1->GetBase()); in TEST() 51 int* stuff1 = static_cast<int*>(mapping1->GetBase()); in TEST() 68 mapping1.reset(); in TEST() 147 scoped_ptr<PlatformSharedBufferMapping> mapping1(buffer->Map(0, 100)); in TEST() local 149 EXPECT_NE(mapping1->GetBase(), mapping2->GetBase()); in TEST() 168 scoped_ptr<PlatformSharedBufferMapping> mapping1; in TEST() local 174 mapping1 = buffer->Map(0, 100).Pass(); in TEST() 176 static_cast<char*>(mapping1->GetBase())[50] = 'x'; in TEST() [all …]
|
/external/chromium_org/mojo/system/ |
D | shared_buffer_dispatcher_unittest.cc | 128 scoped_ptr<embedder::PlatformSharedBufferMapping> mapping1; in TEST_F() local 131 dispatcher->MapBuffer(0, 100, MOJO_MAP_BUFFER_FLAG_NONE, &mapping1)); in TEST_F() 132 ASSERT_TRUE(mapping1); in TEST_F() 133 ASSERT_TRUE(mapping1->GetBase()); in TEST_F() 134 EXPECT_EQ(100u, mapping1->GetLength()); in TEST_F() 136 static_cast<char*>(mapping1->GetBase())[50] = 'x'; in TEST_F() 152 EXPECT_EQ('y', static_cast<char*>(mapping1->GetBase())[51]); in TEST_F()
|
D | remote_message_pipe_unittest.cc | 778 scoped_ptr<embedder::PlatformSharedBufferMapping> mapping1; in TEST_F() local 781 dispatcher->MapBuffer(0, 100, MOJO_MAP_BUFFER_FLAG_NONE, &mapping1)); in TEST_F() 782 ASSERT_TRUE(mapping1); in TEST_F() 783 ASSERT_TRUE(mapping1->GetBase()); in TEST_F() 784 ASSERT_EQ(100u, mapping1->GetLength()); in TEST_F() 785 EXPECT_NE(mapping1->GetBase(), mapping0->GetBase()); in TEST_F() 786 EXPECT_EQ('A', static_cast<char*>(mapping1->GetBase())[0]); in TEST_F() 787 EXPECT_EQ('B', static_cast<char*>(mapping1->GetBase())[50]); in TEST_F() 788 EXPECT_EQ('C', static_cast<char*>(mapping1->GetBase())[99]); in TEST_F() 791 static_cast<char*>(mapping1->GetBase())[1] = 'x'; in TEST_F() [all …]
|