OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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" |
9 #include "SkPaint.h" | 10 #include "SkPaint.h" |
10 #include "SkFontStream.h" | 11 #include "SkFontStream.h" |
11 #include "SkOSFile.h" | 12 #include "SkOSFile.h" |
12 #include "SkStream.h" | 13 #include "SkStream.h" |
13 #include "SkTypeface.h" | 14 #include "SkTypeface.h" |
14 #include "SkEndian.h" | 15 #include "SkEndian.h" |
15 | 16 |
16 //#define DUMP_TABLES | 17 //#define DUMP_TABLES |
17 //#define DUMP_TTC_TABLES | 18 //#define DUMP_TTC_TABLES |
18 | 19 |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 299 |
299 // SkDebugf("Font: %s, generateAdvance: %f, generateMetrics: %f\
n", | 300 // SkDebugf("Font: %s, generateAdvance: %f, generateMetrics: %f\
n", |
300 // faces[i], SkScalarToFloat(width1), SkScalarToFloat(width2)
); | 301 // faces[i], SkScalarToFloat(width1), SkScalarToFloat(width2)
); |
301 | 302 |
302 REPORTER_ASSERT(reporter, width1 == width2); | 303 REPORTER_ASSERT(reporter, width1 == width2); |
303 } | 304 } |
304 } | 305 } |
305 } | 306 } |
306 } | 307 } |
307 | 308 |
308 static void TestFontHost(skiatest::Reporter* reporter) { | 309 DEF_TEST(FontHost, reporter) { |
309 test_tables(reporter); | 310 test_tables(reporter); |
310 test_fontstream(reporter); | 311 test_fontstream(reporter); |
311 test_advances(reporter); | 312 test_advances(reporter); |
312 } | 313 } |
313 | 314 |
314 // need tests for SkStrSearch | 315 // need tests for SkStrSearch |
315 | |
316 #include "TestClassDef.h" | |
317 DEFINE_TESTCLASS("FontHost", FontHostTestClass, TestFontHost) | |
OLD | NEW |