Searched refs:mmap_base (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/libs/vr/libbroadcastring/ |
D | broadcast_ring_test.cc | 574 void* mmap_base = mmap(nullptr, mmap_size, PROT_READ | PROT_WRITE, in TEST() local 576 ASSERT_NE(MAP_FAILED, mmap_base); in TEST() 578 Ring ring = Ring::Create(mmap_base, mmap_size, record_count); in TEST() 581 ASSERT_EQ(0, mprotect(mmap_base, mmap_size, PROT_READ)); in TEST() 586 std::tie(imported_ring, import_ok) = Ring::Import(mmap_base, mmap_size); in TEST() 600 ASSERT_EQ(0, munmap(mmap_base, mmap_size)); in TEST() 614 void* mmap_base = mmap(nullptr, mmap_size, PROT_READ | PROT_WRITE, in TEST() local 616 ASSERT_NE(MAP_FAILED, mmap_base); in TEST() 618 Ring ring = Ring::Create(mmap_base, mmap_size, record_count); in TEST() 621 ASSERT_EQ(0, mprotect(mmap_base, mmap_size, PROT_READ)); in TEST() [all …]
|