OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 #include "crc32_test.h" | 6 #include "crc32_test.h" |
7 #include "cgptlib_test.h" | 7 #include "cgptlib_test.h" |
8 #include "crc32.h" | 8 #include "crc32.h" |
9 #include "utility.h" | 9 #include "utility.h" |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 int i; | 38 int i; |
39 | 39 |
40 for (i = 0; i < ARRAY_SIZE(cases); ++i) { | 40 for (i = 0; i < ARRAY_SIZE(cases); ++i) { |
41 uint32_t crc32; | 41 uint32_t crc32; |
42 | 42 |
43 crc32 = Crc32(cases[i].vector, cases[i].len); | 43 crc32 = Crc32(cases[i].vector, cases[i].len); |
44 EXPECT(crc32 == cases[i].crc32); | 44 EXPECT(crc32 == cases[i].crc32); |
45 } | 45 } |
46 return TEST_OK; | 46 return TEST_OK; |
47 } | 47 } |
OLD | NEW |