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

Side by Side Diff: tests/FontHostTest.cpp

Issue 100113004: Use DEFINE_TESTCLASS_SHORT macro in tests. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years 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/FontHostStreamTest.cpp ('k') | tests/FontMgrTest.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 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
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)
OLDNEW
« no previous file with comments | « tests/FontHostStreamTest.cpp ('k') | tests/FontMgrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698