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 #include "SkPaint.h" | 9 #include "SkPaint.h" |
11 #include "SkUtils.h" | 10 #include "SkUtils.h" |
12 | 11 |
13 // Unicode Variation Selector ranges: inclusive | 12 // Unicode Variation Selector ranges: inclusive |
14 #define UVS_MIN0 0x180B | 13 #define UVS_MIN0 0x180B |
15 #define UVS_MAX0 0x180D | 14 #define UVS_MAX0 0x180D |
16 #define UVS_MIN1 0xFE00 | 15 #define UVS_MIN1 0xFE00 |
17 #define UVS_MAX1 0xFE0F | 16 #define UVS_MAX1 0xFE0F |
18 #define UVS_MIN2 0xE0100 | 17 #define UVS_MIN2 0xE0100 |
19 #define UVS_MAX2 0xE01EF | 18 #define UVS_MAX2 0xE01EF |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 REPORTER_ASSERT(reporter, (int)len8 == count32); | 74 REPORTER_ASSERT(reporter, (int)len8 == count32); |
76 | 75 |
77 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs16, count8 * sizeof(uint16_
t))); | 76 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs16, count8 * sizeof(uint16_
t))); |
78 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs32, count8 * sizeof(uint16_
t))); | 77 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs32, count8 * sizeof(uint16_
t))); |
79 } | 78 } |
80 | 79 |
81 DEF_TEST(Unicode, reporter) { | 80 DEF_TEST(Unicode, reporter) { |
82 test_uvs(reporter); | 81 test_uvs(reporter); |
83 test_textencodings(reporter); | 82 test_textencodings(reporter); |
84 } | 83 } |
OLD | NEW |