aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RTreeTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/RTreeTest.cpp')
-rw-r--r--tests/RTreeTest.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/RTreeTest.cpp b/tests/RTreeTest.cpp
index a907d6d588..beff03c650 100644
--- a/tests/RTreeTest.cpp
+++ b/tests/RTreeTest.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2012 Google Inc.
*
@@ -7,6 +6,7 @@
*/
#include "Test.h"
+#include "TestClassDef.h"
#include "SkRandom.h"
#include "SkRTree.h"
#include "SkTSort.h"
@@ -139,7 +139,7 @@ static void rtree_test_main(SkRTree* rtree, skiatest::Reporter* reporter) {
}
}
-static void test_rtree(skiatest::Reporter* reporter) {
+DEF_TEST(RTree, reporter) {
SkRTree* rtree = SkRTree::Create(MIN_CHILDREN, MAX_CHILDREN);
SkAutoUnref au(rtree);
rtree_test_main(rtree, reporter);
@@ -149,7 +149,3 @@ static void test_rtree(skiatest::Reporter* reporter) {
SkAutoUnref auo(unsortedRtree);
rtree_test_main(unsortedRtree, reporter);
}
-
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("RTree", RTreeTestClass, test_rtree)