Home
last modified time | relevance | path

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

/external/libchrome/base/memory/
Ddiscardable_shared_memory.cc113 DiscardableSharedMemory::DiscardableSharedMemory() in DiscardableSharedMemory() function in base::DiscardableSharedMemory
117 DiscardableSharedMemory::DiscardableSharedMemory( in DiscardableSharedMemory() function in base::DiscardableSharedMemory
123 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 …]
Ddiscardable_shared_memory_unittest.cc19 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 …]
Ddiscardable_shared_memory.h45 class BASE_EXPORT DiscardableSharedMemory {
49 DiscardableSharedMemory();
53 explicit DiscardableSharedMemory(UnsafeSharedMemoryRegion region);
56 virtual ~DiscardableSharedMemory();
182 DISALLOW_COPY_AND_ASSIGN(DiscardableSharedMemory);
Dunsafe_shared_memory_region.h100 friend class DiscardableSharedMemory; variable