| OLD | NEW |
| 1 #include "Test.h" | 1 #include "Test.h" |
| 2 #include "SkVarAlloc.h" | 2 #include "SkVarAlloc.h" |
| 3 | 3 |
| 4 DEF_TEST(VarAlloc, r) { | 4 DEF_TEST(VarAlloc, r) { |
| 5 SkVarAlloc va; | 5 SkVarAlloc va(4/*start allocating at 16B*/); |
| 6 char* p = va.alloc(128, SK_MALLOC_THROW); | 6 char* p = va.alloc(128, SK_MALLOC_THROW); |
| 7 sk_bzero(p, 128); // Just checking this is safe. | 7 sk_bzero(p, 128); // Just checking this is safe. |
| 8 | 8 |
| 9 #ifndef SK_BUILD_FOR_ANDROID | 9 #ifndef SK_BUILD_FOR_ANDROID |
| 10 // This method will always return 0 on Android. | 10 // This method will always return 0 on Android. |
| 11 REPORTER_ASSERT(r, va.approxBytesAllocated() >= 128); | 11 REPORTER_ASSERT(r, va.approxBytesAllocated() >= 128); |
| 12 #endif | 12 #endif |
| 13 } | 13 } |
| OLD | NEW |