Index: tests/MD5Test.cpp |
diff --git a/tests/MD5Test.cpp b/tests/MD5Test.cpp |
index 9b9e756aa856793c0d483f28f81a5893a64c12f8..ed9f69cd8d3975b3b674112c74e0f9b6c380a876 100644 |
--- a/tests/MD5Test.cpp |
+++ b/tests/MD5Test.cpp |
@@ -4,7 +4,9 @@ |
* 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 "SkMD5.h" |
static bool digests_equal(const SkMD5::Digest& expectedDigest, const SkMD5::Digest& computedDigest) { |
@@ -58,11 +60,8 @@ static struct MD5Test { |
{ "12345678901234567890123456789012345678901234567890123456789012345678901234567890", {{ 0x57, 0xed, 0xf4, 0xa2, 0x2b, 0xe3, 0xc9, 0x55, 0xac, 0x49, 0xda, 0x2e, 0x21, 0x07, 0xb6, 0x7a }} }, |
}; |
-static void TestMD5(skiatest::Reporter* reporter) { |
+DEF_TEST(MD5, reporter) { |
for (size_t i = 0; i < SK_ARRAY_COUNT(md5_tests); ++i) { |
md5_test(md5_tests[i].message, md5_tests[i].digest, reporter); |
} |
} |
- |
-#include "TestClassDef.h" |
-DEFINE_TESTCLASS("MD5", MD5TestClass, TestMD5) |