OLD | NEW |
---|---|
(Empty) | |
1 #include "SkMiniData.h" | |
2 #include "Test.h" | |
3 | |
4 DEF_TEST(MiniData, r) { | |
5 static const char* s = "abcdefghijklmnopqrstuvwxyz"; | |
6 | |
7 for (size_t len = 0; len <= 26; len++) { | |
8 SkMiniData md(s, len); | |
9 REPORTER_ASSERT(r, md.len() == len); | |
10 REPORTER_ASSERT(r, 0 == memcmp(md.data(), s, len)); | |
11 | |
12 SkMiniData copy(md); | |
13 REPORTER_ASSERT(r, copy.len() == len); | |
14 REPORTER_ASSERT(r, 0 == memcmp(copy.data(), s, len)); | |
15 } | |
16 } | |
OLD | NEW |