Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: tests/MemoryTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/MatrixTest.cpp ('k') | tests/MemsetTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "Test.h" 1 #include "Test.h"
2 #include "TestClassDef.h"
3 2
4 DEF_TEST(memory_calloc, reporter) { 3 DEF_TEST(memory_calloc, reporter) {
5 const size_t kNum = 200; 4 const size_t kNum = 200;
6 char* zeros = (char*)sk_calloc_throw(kNum*sizeof(char)); 5 char* zeros = (char*)sk_calloc_throw(kNum*sizeof(char));
7 6
8 for (size_t i = 0; i < kNum; i++) { 7 for (size_t i = 0; i < kNum; i++) {
9 REPORTER_ASSERT(reporter, 0 == zeros[i]); 8 REPORTER_ASSERT(reporter, 0 == zeros[i]);
10 } 9 }
11 sk_free(zeros); 10 sk_free(zeros);
12 } 11 }
OLDNEW
« no previous file with comments | « tests/MatrixTest.cpp ('k') | tests/MemsetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698