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.cc55 struct TestObject1 { struct in base::PersistentMemoryAllocatorTest
127 TestObject1* obj1 = allocator_->New<TestObject1>(); in TEST_F()
131 EXPECT_NE(nullptr, allocator_->GetAsObject<TestObject1>(block1)); in TEST_F()
133 EXPECT_LE(sizeof(TestObject1), allocator_->GetAllocSize(block1)); in TEST_F()
134 EXPECT_GT(sizeof(TestObject1) + kAllocAlignment, in TEST_F()
172 EXPECT_EQ(nullptr, allocator_->GetAsObject<TestObject1>(block2)); in TEST_F()
240 EXPECT_NE(nullptr, allocator2->GetAsObject<TestObject1>(block1)); in TEST_F()
255 EXPECT_NE(nullptr, allocator3->GetAsObject<TestObject1>(block1)); in TEST_F()
569 Reference block1 = allocator_->Allocate(sizeof(TestObject1), 1); in TEST_F()
570 Reference block2 = allocator_->Allocate(sizeof(TestObject1), 2); in TEST_F()
[all …]