21 constexpr size_t alloc_count = 100;
25 for (
size_t i = 0;
i < alloc_count;
i++) {
27 bytes[
i] = (uint8_t)
i;
31 int32_t* ints = (int32_t*)
sk_calloc_throw(alloc_count,
sizeof(int32_t));
33 for (
size_t i = 0;
i < alloc_count;
i++) {
41 constexpr size_t alloc_count = 100;
45 for (
size_t i = 0;
i < alloc_count;
i++) {
46 bytes[
i] = (uint8_t)
i;
50 int32_t* ints = (int32_t*)
sk_malloc_throw(alloc_count,
sizeof(int32_t));
52 for (
size_t i = 0;
i < alloc_count;
i++) {
63 for (
size_t i = 0;
i < 10;
i++) {
64 bytes[
i] = (uint8_t)
i;
71 for (
int i = 0;
i < 5;
i++) {
73 bytes[
i] = (uint8_t)
i + 17;
80 for (
int i = 0;
i < 5;
i++) {
82 bytes[
i] = (uint8_t)
i + 43;
85 for (
int i = 5;
i < 20;
i++) {
86 bytes[
i] = (uint8_t)
i + 43;
#define SkASSERT_RELEASE(cond)
DEF_TEST(SkFree_SafeToPassNull, reporter)
static void * sk_calloc_throw(size_t size)
SK_API void sk_free(void *)
static void * sk_malloc_throw(size_t size)
SK_API void * sk_realloc_throw(void *buffer, size_t size)
#define REPORTER_ASSERT(r, cond,...)