Home
last modified time | relevance | path

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

/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc47 struct TestObject2 { struct in base::PersistentMemoryAllocatorTest
113 EXPECT_EQ(nullptr, allocator_->GetAsObject<TestObject2>(block1, 1)); in TEST_F()
133 Reference block2 = allocator_->Allocate(sizeof(TestObject2), 2); in TEST_F()
135 EXPECT_NE(nullptr, allocator_->GetAsObject<TestObject2>(block2, 2)); in TEST_F()
136 EXPECT_EQ(nullptr, allocator_->GetAsObject<TestObject2>(block2, 1)); in TEST_F()
137 EXPECT_LE(sizeof(TestObject2), allocator_->GetAllocSize(block2)); in TEST_F()
138 EXPECT_GT(sizeof(TestObject2) + kAllocAlignment, in TEST_F()
174 EXPECT_EQ(1, allocs_samples->GetCount(sizeof(TestObject2))); in TEST_F()
204 EXPECT_NE(nullptr, allocator2->GetAsObject<TestObject2>(block2, 2)); in TEST_F()
220 EXPECT_NE(nullptr, allocator3->GetAsObject<TestObject2>(block2, 2)); in TEST_F()