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

Side by Side Diff: tests/UnicodeTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload 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" 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
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 }
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