Home
last modified time | relevance | path

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

/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc42 struct TestObject1 { struct in base::PersistentMemoryAllocatorTest
110 Reference block1 = allocator_->Allocate(sizeof(TestObject1), 1); in TEST_F()
112 EXPECT_NE(nullptr, allocator_->GetAsObject<TestObject1>(block1, 1)); in TEST_F()
114 EXPECT_LE(sizeof(TestObject1), allocator_->GetAllocSize(block1)); in TEST_F()
115 EXPECT_GT(sizeof(TestObject1) + kAllocAlignment, in TEST_F()
173 EXPECT_EQ(1, allocs_samples->GetCount(sizeof(TestObject1))); in TEST_F()
203 EXPECT_NE(nullptr, allocator2->GetAsObject<TestObject1>(block1, 1)); in TEST_F()
219 EXPECT_NE(nullptr, allocator3->GetAsObject<TestObject1>(block1, 1)); in TEST_F()
477 Reference block1 = allocator_->Allocate(sizeof(TestObject1), 1); in TEST_F()
478 Reference block2 = allocator_->Allocate(sizeof(TestObject1), 2); in TEST_F()
[all …]