14 EXPECT_EQ(storage.
base(),
nullptr);
15 EXPECT_EQ(storage.
size(), 0u);
21 EXPECT_NE(storage.
allocate(10u),
nullptr);
22 EXPECT_NE(storage.
base(),
nullptr);
23 EXPECT_EQ(storage.
size(), 10u);
29 EXPECT_NE(original.
allocate(10u),
nullptr);
35 EXPECT_EQ(original.
base(),
nullptr);
36 EXPECT_EQ(original.
size(), 0u);
41 EXPECT_NE(moved.
base(),
nullptr);
42 EXPECT_EQ(moved.
size(), 10u);
uint8_t * base()
Returns a pointer to the base of the storage.
static size_t NextPowerOfTwoSize(size_t x)
Compute the next power of two from [x].
size_t size() const
Returns the currently allocated size.
uint8_t * allocate(size_t needed)
size_t capacity() const
Returns the maximum currently allocated space.
static const constexpr size_t kDLPageSize
Describes an allocation on the heap.
TEST(NativeAssetsManagerTest, NoAvailableAssets)