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

Unified Diff: tests/SortTest.cpp

Issue 100113004: Use DEFINE_TESTCLASS_SHORT macro in tests. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years 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
« no previous file with comments | « tests/Sk64Test.cpp ('k') | tests/SrcOverTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SortTest.cpp
diff --git a/tests/SortTest.cpp b/tests/SortTest.cpp
index 28c6e682deb24e9988563da887cf139109a7e8d7..ceca4097c52f08f35fab2b8d163cdfffff6e44bd 100644
--- a/tests/SortTest.cpp
+++ b/tests/SortTest.cpp
@@ -1,11 +1,12 @@
-
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
#include "Test.h"
+#include "TestClassDef.h"
#include "SkRandom.h"
#include "SkTSort.h"
@@ -32,7 +33,7 @@ static void check_sort(skiatest::Reporter* reporter, const char label[],
}
}
-static void TestSort(skiatest::Reporter* reporter) {
+DEF_TEST(Sort, reporter) {
/** An array of random numbers to be sorted. */
int randomArray[500];
/** The reference sort of the random numbers. */
@@ -61,6 +62,3 @@ static void TestSort(skiatest::Reporter* reporter) {
}
// need tests for SkStrSearch
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("Sort", SortTestClass, TestSort)
« no previous file with comments | « tests/Sk64Test.cpp ('k') | tests/SrcOverTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698