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

Side by Side Diff: tests/MD5Test.cpp

Issue 145313004: Cleanup: Sanitize the order of includes under tests/ (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more two fixes Created 6 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/LayerDrawLooperTest.cpp ('k') | tests/MathTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include "SkMD5.h"
8 #include "Test.h" 9 #include "Test.h"
9 #include "SkMD5.h"
10 10
11 static bool digests_equal(const SkMD5::Digest& expectedDigest, const SkMD5::Dige st& computedDigest) { 11 static bool digests_equal(const SkMD5::Digest& expectedDigest, const SkMD5::Dige st& computedDigest) {
12 for (size_t i = 0; i < SK_ARRAY_COUNT(expectedDigest.data); ++i) { 12 for (size_t i = 0; i < SK_ARRAY_COUNT(expectedDigest.data); ++i) {
13 if (expectedDigest.data[i] != computedDigest.data[i]) { 13 if (expectedDigest.data[i] != computedDigest.data[i]) {
14 return false; 14 return false;
15 } 15 }
16 } 16 }
17 return true; 17 return true;
18 } 18 }
19 19
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 { "abcdefghijklmnopqrstuvwxyz", {{ 0xc3, 0xfc, 0xd3, 0xd7, 0x61, 0x92, 0xe4, 0x00, 0x7d, 0xfb, 0x49, 0x6c, 0xca, 0x67, 0xe1, 0x3b }} }, 57 { "abcdefghijklmnopqrstuvwxyz", {{ 0xc3, 0xfc, 0xd3, 0xd7, 0x61, 0x92, 0xe4, 0x00, 0x7d, 0xfb, 0x49, 0x6c, 0xca, 0x67, 0xe1, 0x3b }} },
58 { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", {{ 0xd1, 0x74, 0xab, 0x98, 0xd2, 0x77, 0xd9, 0xf5, 0xa5, 0x61, 0x1c, 0x2c, 0x9f, 0x41, 0 x9d, 0x9f }} }, 58 { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", {{ 0xd1, 0x74, 0xab, 0x98, 0xd2, 0x77, 0xd9, 0xf5, 0xa5, 0x61, 0x1c, 0x2c, 0x9f, 0x41, 0 x9d, 0x9f }} },
59 { "1234567890123456789012345678901234567890123456789012345678901234567890123 4567890", {{ 0x57, 0xed, 0xf4, 0xa2, 0x2b, 0xe3, 0xc9, 0x55, 0xac, 0x49, 0xda, 0 x2e, 0x21, 0x07, 0xb6, 0x7a }} }, 59 { "1234567890123456789012345678901234567890123456789012345678901234567890123 4567890", {{ 0x57, 0xed, 0xf4, 0xa2, 0x2b, 0xe3, 0xc9, 0x55, 0xac, 0x49, 0xda, 0 x2e, 0x21, 0x07, 0xb6, 0x7a }} },
60 }; 60 };
61 61
62 DEF_TEST(MD5, reporter) { 62 DEF_TEST(MD5, reporter) {
63 for (size_t i = 0; i < SK_ARRAY_COUNT(md5_tests); ++i) { 63 for (size_t i = 0; i < SK_ARRAY_COUNT(md5_tests); ++i) {
64 md5_test(md5_tests[i].message, md5_tests[i].digest, reporter); 64 md5_test(md5_tests[i].message, md5_tests[i].digest, reporter);
65 } 65 }
66 } 66 }
OLDNEW
« 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