OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #include "Test.h" | 7 #include "Test.h" |
8 #include "SkSHA1.h" | 8 #include "SkSHA1.h" |
9 | 9 |
10 static bool digests_equal(const SkSHA1::Digest& expectedDigest, const SkSHA1::Di
gest& computedDigest) { | 10 static bool digests_equal(const SkSHA1::Digest& expectedDigest, const SkSHA1::Di
gest& computedDigest) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 REPORTER_ASSERT(reporter, digests_equal(test.digest, digest)); | 45 REPORTER_ASSERT(reporter, digests_equal(test.digest, digest)); |
46 } | 46 } |
47 | 47 |
48 static void TestSHA1(skiatest::Reporter* reporter) { | 48 static void TestSHA1(skiatest::Reporter* reporter) { |
49 for (size_t i = 0; i < SK_ARRAY_COUNT(sha1_tests); ++i) { | 49 for (size_t i = 0; i < SK_ARRAY_COUNT(sha1_tests); ++i) { |
50 sha1_test(sha1_tests[i], reporter); | 50 sha1_test(sha1_tests[i], reporter); |
51 } | 51 } |
52 } | 52 } |
53 | 53 |
54 #include "TestClassDef.h" | 54 #include "TestClassDef.h" |
55 DEFINE_TESTCLASS("SHA1", SHA1TestClass, TestSHA1) | 55 DEFINE_TESTCLASS_SHORT(TestSHA1) |
OLD | NEW |