Searched refs:TEST_MEMORY_SIZE (Results 1 – 1 of 1) sorted by relevance
/external/libchrome/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 24 const uint32_t TEST_MEMORY_SIZE = 1 << 20; // 1 MiB variable 57 mem_segment_.reset(new char[TEST_MEMORY_SIZE]); in PersistentMemoryAllocatorTest() 62 ::memset(mem_segment_.get(), 0, TEST_MEMORY_SIZE); in SetUp() 64 mem_segment_.get(), TEST_MEMORY_SIZE, TEST_MEMORY_PAGE, in SetUp() 105 EXPECT_EQ(TEST_MEMORY_SIZE, meminfo0.total); in TEST_F() 176 EXPECT_EQ(0U, allocator_->Allocate(TEST_MEMORY_SIZE + 1, 0)); in TEST_F() 191 new PersistentMemoryAllocator(mem_segment_.get(), TEST_MEMORY_SIZE, in TEST_F() 208 new PersistentMemoryAllocator(mem_segment_.get(), TEST_MEMORY_SIZE, in TEST_F() 286 AllocatorThread t1("t1", memory, TEST_MEMORY_SIZE, TEST_MEMORY_PAGE); in TEST_F() 287 AllocatorThread t2("t2", memory, TEST_MEMORY_SIZE, TEST_MEMORY_PAGE); in TEST_F() [all …]
|