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

Unified Diff: tests/MD5Test.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/LayerDrawLooperTest.cpp ('k') | tests/MathTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « tests/LayerDrawLooperTest.cpp ('k') | tests/MathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698