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

Side by Side Diff: tests/UnicodeTest.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/Typeface.cpp ('k') | tests/UnitTestTest.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 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"
9 #include "SkPaint.h" 8 #include "SkPaint.h"
10 #include "SkUtils.h" 9 #include "SkUtils.h"
10 #include "Test.h"
11 11
12 // Unicode Variation Selector ranges: inclusive 12 // Unicode Variation Selector ranges: inclusive
13 #define UVS_MIN0 0x180B 13 #define UVS_MIN0 0x180B
14 #define UVS_MAX0 0x180D 14 #define UVS_MAX0 0x180D
15 #define UVS_MIN1 0xFE00 15 #define UVS_MIN1 0xFE00
16 #define UVS_MAX1 0xFE0F 16 #define UVS_MAX1 0xFE0F
17 #define UVS_MIN2 0xE0100 17 #define UVS_MIN2 0xE0100
18 #define UVS_MAX2 0xE01EF 18 #define UVS_MAX2 0xE01EF
19 19
20 static bool isUVS(SkUnichar uni) { 20 static bool isUVS(SkUnichar uni) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 REPORTER_ASSERT(reporter, (int)len8 == count32); 74 REPORTER_ASSERT(reporter, (int)len8 == count32);
75 75
76 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs16, count8 * sizeof(uint16_ t))); 76 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs16, count8 * sizeof(uint16_ t)));
77 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs32, count8 * sizeof(uint16_ t))); 77 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs32, count8 * sizeof(uint16_ t)));
78 } 78 }
79 79
80 DEF_TEST(Unicode, reporter) { 80 DEF_TEST(Unicode, reporter) {
81 test_uvs(reporter); 81 test_uvs(reporter);
82 test_textencodings(reporter); 82 test_textencodings(reporter);
83 } 83 }
OLDNEW
« no previous file with comments | « tests/Typeface.cpp ('k') | tests/UnitTestTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698