Searched refs:DiscardableSharedMemory (Results 1 – 4 of 4) sorted by relevance
113 DiscardableSharedMemory::DiscardableSharedMemory() in DiscardableSharedMemory() function in base::DiscardableSharedMemory117 DiscardableSharedMemory::DiscardableSharedMemory( in DiscardableSharedMemory() function in base::DiscardableSharedMemory123 DiscardableSharedMemory::~DiscardableSharedMemory() = default;125 bool DiscardableSharedMemory::CreateAndMap(size_t size) { in CreateAndMap()158 bool DiscardableSharedMemory::Map(size_t size) { in Map()180 bool DiscardableSharedMemory::Unmap() { in Unmap()193 DiscardableSharedMemory::LockResult DiscardableSharedMemory::Lock( in Lock()271 return DiscardableSharedMemory::SUCCESS; in Lock()273 return DiscardableSharedMemory::SUCCESS; in Lock()277 void DiscardableSharedMemory::Unlock(size_t offset, size_t length) { in Unlock()[all …]
19 class TestDiscardableSharedMemory : public DiscardableSharedMemory {24 : DiscardableSharedMemory(std::move(region)) {} in TestDiscardableSharedMemory()74 DiscardableSharedMemory::LockResult lock_rv = memory1.Lock(0, 0); in TEST()75 EXPECT_EQ(DiscardableSharedMemory::SUCCESS, lock_rv); in TEST()81 EXPECT_EQ(DiscardableSharedMemory::SUCCESS, lock_rv); in TEST()101 EXPECT_EQ(DiscardableSharedMemory::SUCCESS, lock_rv); in TEST()147 DiscardableSharedMemory::LockResult lock_rv = memory2.Lock(0, 0); in TEST()148 EXPECT_EQ(DiscardableSharedMemory::FAILED, lock_rv); in TEST()172 DiscardableSharedMemory::LockResult lock_rv = memory2.Lock(0, 0); in TEST()173 EXPECT_EQ(DiscardableSharedMemory::SUCCESS, lock_rv); in TEST()[all …]
45 class BASE_EXPORT DiscardableSharedMemory {49 DiscardableSharedMemory();53 explicit DiscardableSharedMemory(UnsafeSharedMemoryRegion region);56 virtual ~DiscardableSharedMemory();182 DISALLOW_COPY_AND_ASSIGN(DiscardableSharedMemory);
100 friend class DiscardableSharedMemory; variable