Searched refs:memory1 (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/base/memory/ |
D | discardable_shared_memory_unittest.cc | 48 TestDiscardableSharedMemory memory1; in TEST() local 49 bool rv = memory1.CreateAndMap(kDataSize); in TEST() 52 UnsafeSharedMemoryRegion shared_region = memory1.DuplicateRegion(); in TEST() 64 TestDiscardableSharedMemory memory1; in TEST() local 65 bool rv = memory1.CreateAndMap(kDataSize); in TEST() 69 memory1.SetNow(Time::FromDoubleT(1)); in TEST() 70 memory1.Unlock(0, 0); in TEST() 71 EXPECT_FALSE(memory1.IsMemoryLocked()); in TEST() 74 DiscardableSharedMemory::LockResult lock_rv = memory1.Lock(0, 0); in TEST() 76 memory1.SetNow(Time::FromDoubleT(2)); in TEST() [all …]
|
D | shared_memory_unittest.cc | 146 SharedMemory memory1; in TEST_P() local 147 bool rv = memory1.Delete(test_name); in TEST_P() 149 rv = memory1.Delete(test_name); in TEST_P() 151 rv = memory1.Open(test_name, false); in TEST_P() 153 rv = memory1.CreateNamedDeprecated(test_name, false, kDataSize); in TEST_P() 155 rv = memory1.Map(kDataSize); in TEST_P() 162 EXPECT_NE(memory1.memory(), memory2.memory()); // Compare the pointers. in TEST_P() 165 ASSERT_NE(memory1.memory(), static_cast<void*>(nullptr)); in TEST_P() 169 memset(memory1.memory(), '1', kDataSize); in TEST_P() 170 EXPECT_EQ(memcmp(memory1.memory(), memory2.memory(), kDataSize), 0); in TEST_P() [all …]
|
/external/libchrome/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 143 char* memory1 = allocator_->GetAsArray<char>(block1, 1, 1); in TEST_F() local 144 ASSERT_TRUE(memory1); in TEST_F() 145 EXPECT_EQ(block1, allocator_->GetAsReference(memory1, 0)); in TEST_F() 146 EXPECT_EQ(block1, allocator_->GetAsReference(memory1, 1)); in TEST_F() 147 EXPECT_EQ(0U, allocator_->GetAsReference(memory1, 2)); in TEST_F() 148 EXPECT_EQ(0U, allocator_->GetAsReference(memory1 + 1, 0)); in TEST_F() 149 EXPECT_EQ(0U, allocator_->GetAsReference(memory1 + 16, 0)); in TEST_F()
|
/external/libchrome/base/trace_event/ |
D | process_memory_dump_unittest.cc | 490 void* memory1 = Map(size1); in TEST() local 491 memset(memory1, 0, size1); in TEST() 492 size_t res1 = ProcessMemoryDump::CountResidentBytes(memory1, size1); in TEST() 494 Unmap(memory1, size1); in TEST()
|