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 "SkMD5.h" | 8 #include "SkMD5.h" |
9 | 9 |
10 static bool digests_equal(const SkMD5::Digest& expectedDigest, const SkMD5::Dige
st& computedDigest) { | 10 static bool digests_equal(const SkMD5::Digest& expectedDigest, const SkMD5::Dige
st& computedDigest) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 { "1234567890123456789012345678901234567890123456789012345678901234567890123
4567890", {{ 0x57, 0xed, 0xf4, 0xa2, 0x2b, 0xe3, 0xc9, 0x55, 0xac, 0x49, 0xda, 0
x2e, 0x21, 0x07, 0xb6, 0x7a }} }, | 58 { "1234567890123456789012345678901234567890123456789012345678901234567890123
4567890", {{ 0x57, 0xed, 0xf4, 0xa2, 0x2b, 0xe3, 0xc9, 0x55, 0xac, 0x49, 0xda, 0
x2e, 0x21, 0x07, 0xb6, 0x7a }} }, |
59 }; | 59 }; |
60 | 60 |
61 static void TestMD5(skiatest::Reporter* reporter) { | 61 static void TestMD5(skiatest::Reporter* reporter) { |
62 for (size_t i = 0; i < SK_ARRAY_COUNT(md5_tests); ++i) { | 62 for (size_t i = 0; i < SK_ARRAY_COUNT(md5_tests); ++i) { |
63 md5_test(md5_tests[i].message, md5_tests[i].digest, reporter); | 63 md5_test(md5_tests[i].message, md5_tests[i].digest, reporter); |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 #include "TestClassDef.h" | 67 #include "TestClassDef.h" |
68 DEFINE_TESTCLASS("MD5", MD5TestClass, TestMD5) | 68 DEFINE_TESTCLASS_SHORT(TestMD5) |
OLD | NEW |