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

Unified Diff: tests/SortTest.cpp

Issue 132843002: Add REPORTF test macro. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: factor 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 side-by-side diff with in-line comments
Download patch
Index: tests/SortTest.cpp
diff --git a/tests/SortTest.cpp b/tests/SortTest.cpp
index ceca4097c52f08f35fab2b8d163cdfffff6e44bd..16c7891ecf01b32da09d6f167e1d1c765e79c805 100644
--- a/tests/SortTest.cpp
+++ b/tests/SortTest.cpp
@@ -26,9 +26,9 @@ static void check_sort(skiatest::Reporter* reporter, const char label[],
const int array[], const int reference[], int n) {
for (int j = 0; j < n; ++j) {
if (array[j] != reference[j]) {
- SkString str;
- str.printf("%sSort [%d] failed %d %d", label, n, array[j], reference[j]);
- reporter->reportFailed(str);
+ REPORTF(reporter,
+ ("%sSort [%d] failed %d %d",
+ label, n, array[j], reference[j]));
}
}
}
« no previous file with comments | « tests/PathCoverageTest.cpp ('k') | tests/StreamTest.cpp » ('j') | tests/Test.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698