Home
last modified time | relevance | path

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

/frameworks/av/media/utils/tests/
Dshared_memory_allocator_tests.cpp114 const auto first_memory = allocator.allocate(BasicAllocRequest{500}); in TEST() local
116 ASSERT_TRUE(first_memory != nullptr && second_memory != nullptr); in TEST()
117 EXPECT_NE(first_memory->getMemory()->getHeapID(), second_memory->getMemory()->getHeapID()); in TEST()
118 allocator.deallocate(first_memory); in TEST()
128 const auto first_memory = allocator.allocate(NamedAllocRequest{{500}, "allocate_1"}); in TEST() local
129 auto second_memory = first_memory; in TEST()
135 ASSERT_TRUE(first_memory && second_memory); in TEST()
136 EXPECT_TRUE(allocator.owns(first_memory) && allocator.owns(second_memory)); in TEST()
142 EXPECT_TRUE(first_memory == key); in TEST()
155 EXPECT_TRUE(allocator.owns(first_memory)); in TEST()
[all …]