5#include "flutter/fml/mapping.h"
6#include "flutter/testing/testing.h"
13 ASSERT_EQ(0u, mapping.
GetSize());
31 ASSERT_EQ(0u, mapping.
GetSize());
52 free(
const_cast<uint8_t*
>(mapping.
Release()));
54 ASSERT_EQ(0u, mapping.
GetSize());
67 ASSERT_EQ(0u, mapping.
GetSize());
A Mapping like NonOwnedMapping, but uses Free as its release proc.
bool IsDontNeedSafe() const override
static MallocMapping Copy(const T *begin, const T *end)
size_t GetSize() const override
const uint8_t * GetMapping() const override
void * malloc(size_t size)
TEST(MallocMapping, EmptyContructor)