OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "Test.h" | 8 #include "Test.h" |
9 #include "TestClassDef.h" | |
10 | 9 |
11 // Include the implementation so we can make an appropriate template instance. | 10 // Include the implementation so we can make an appropriate template instance. |
12 #include "SkAdvancedTypefaceMetrics.h" | 11 #include "SkAdvancedTypefaceMetrics.h" |
13 | 12 |
14 using namespace skia_advanced_typeface_metrics_utils; | 13 using namespace skia_advanced_typeface_metrics_utils; |
15 | 14 |
16 // Negative values and zeros in a range plus trailing zeros. | 15 // Negative values and zeros in a range plus trailing zeros. |
17 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 16 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
18 static const int16_t data1[] = {-1, 0, -3, 4, 5, 6, 7, 0, 0, 0, 8, 0, 0, 0, 0}; | 17 static const int16_t data1[] = {-1, 0, -3, 4, 5, 6, 7, 0, 0, 0, 8, 0, 0, 0, 0}; |
19 static const char* expected1 = "0[-1 0 -3 4 5 6 7 0 0 0 8]"; | 18 static const char* expected1 = "0[-1 0 -3 4 5 6 7 0 0 0 8]"; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), NULL, 0, expected12); | 198 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), NULL, 0, expected12); |
200 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), subset12, | 199 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), subset12, |
201 SK_ARRAY_COUNT(subset12), expectedSubset12); | 200 SK_ARRAY_COUNT(subset12), expectedSubset12); |
202 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), NULL, 0, expected13); | 201 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), NULL, 0, expected13); |
203 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), subset13, | 202 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), subset13, |
204 SK_ARRAY_COUNT(subset13), expectedSubset13); | 203 SK_ARRAY_COUNT(subset13), expectedSubset13); |
205 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), NULL, 0, expected14); | 204 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), NULL, 0, expected14); |
206 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), subset14, | 205 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), subset14, |
207 SK_ARRAY_COUNT(subset14), expectedSubset14); | 206 SK_ARRAY_COUNT(subset14), expectedSubset14); |
208 } | 207 } |
OLD | NEW |