Home
last modified time | relevance | path

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

/external/libchrome/base/memory/
Dshared_memory_unittest.cc324 SharedMemory writable_shmem; in TEST() local
328 ASSERT_TRUE(writable_shmem.Create(options)); in TEST()
329 ASSERT_TRUE(writable_shmem.Map(options.size)); in TEST()
330 memcpy(writable_shmem.memory(), contents.data(), contents.size()); in TEST()
331 EXPECT_TRUE(writable_shmem.Unmap()); in TEST()
334 ASSERT_TRUE(writable_shmem.ShareReadOnlyToProcess(GetCurrentProcessHandle(), in TEST()
345 ASSERT_TRUE(writable_shmem.Map(contents.size())); in TEST()
347 memcpy(writable_shmem.memory(), new_contents.data(), new_contents.size()); in TEST()
349 StringPiece(static_cast<const char*>(writable_shmem.memory()), in TEST()