e2eac8b2fd
Motivation: those macros don't make any sense without the definitions in Test.h. BUG= R=mtklein@google.com Author: halcanary@google.com Review URL: https://codereview.chromium.org/138563004 git-svn-id: http://skia.googlecode.com/svn/trunk@13074 2bbb7eff-a529-9590-31e7-b0007b416f81
12 lines
264 B
C++
12 lines
264 B
C++
#include "Test.h"
|
|
|
|
DEF_TEST(memory_calloc, reporter) {
|
|
const size_t kNum = 200;
|
|
char* zeros = (char*)sk_calloc_throw(kNum*sizeof(char));
|
|
|
|
for (size_t i = 0; i < kNum; i++) {
|
|
REPORTER_ASSERT(reporter, 0 == zeros[i]);
|
|
}
|
|
sk_free(zeros);
|
|
}
|