Searched refs:fallback_allocator (Results 1 – 1 of 1) sorted by relevance
243 TEST(shared_memory_allocator_tests, fallback_allocator) { in TEST() argument252 FallbackAllocator fallback_allocator{SnoopingAllocator{IndirectAllocator{primary_allocator}}, in TEST() local254 ASSERT_EQ(decltype(fallback_allocator)::alignment(), kPageSize); in TEST()257 fallback_allocator.allocate(NamedAllocRequest{{kMaxPageSize}, "allocation_1"}); in TEST()260 EXPECT_TRUE(fallback_allocator.owns(memory)); in TEST()265 fallback_allocator.allocate(NamedAllocRequest{{kMaxPageSize}, "allocation_2"}); in TEST()268 EXPECT_TRUE(fallback_allocator.owns(memory2)); in TEST()281 fallback_allocator.deallocate(memory); in TEST()286 fallback_allocator.allocate(NamedAllocRequest{{kMaxPageSize}, "allocation_3"}); in TEST()287 EXPECT_TRUE(fallback_allocator.owns(memory3)); in TEST()[all …]