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

Unified Diff: tests/SHA1Test.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/RoundRectTest.cpp ('k') | tests/ScalarTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SHA1Test.cpp
diff --git a/tests/SHA1Test.cpp b/tests/SHA1Test.cpp
index dde828cb510f02c34d2119032984f05c70f5e3f1..87849b2c8ad21a07eae07e61f0ca1948b3fc2a3e 100644
--- a/tests/SHA1Test.cpp
+++ b/tests/SHA1Test.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 "SkSHA1.h"
static bool digests_equal(const SkSHA1::Digest& expectedDigest, const SkSHA1::Digest& computedDigest) {
@@ -45,11 +47,8 @@ static void sha1_test(const SHA1Test& test, skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, digests_equal(test.digest, digest));
}
-static void TestSHA1(skiatest::Reporter* reporter) {
+DEF_TEST(SHA1, reporter) {
for (size_t i = 0; i < SK_ARRAY_COUNT(sha1_tests); ++i) {
sha1_test(sha1_tests[i], reporter);
}
}
-
-#include "TestClassDef.h"
-DEFINE_TESTCLASS("SHA1", SHA1TestClass, TestSHA1)
« no previous file with comments | « tests/RoundRectTest.cpp ('k') | tests/ScalarTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698