dashboard
repositories
activity
search
login
lzh
/
A133
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
fix(pmu): usb supply always usb adapter mode
huangcm
2025-02-24
69ed55dec4b2116a19e4cca4393cbc014fce5fb2
[~lzh/A133.git]
/
android
/
external
/
skqp
/
tests
/
MemoryTest.cpp
1
2
3
4
5
6
7
8
9
10
11
#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);
}