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

Side by Side Diff: tests/WArrayTest.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/UtilsTest.cpp ('k') | tests/WritePixelsTest.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 9
11 // Include the implementation so we can make an appropriate template instance. 10 // Include the implementation so we can make an appropriate template instance.
12 #include "SkAdvancedTypefaceMetrics.h" 11 #include "SkAdvancedTypefaceMetrics.h"
13 12
14 using namespace skia_advanced_typeface_metrics_utils; 13 using namespace skia_advanced_typeface_metrics_utils;
15 14
16 // Negative values and zeros in a range plus trailing zeros. 15 // Negative values and zeros in a range plus trailing zeros.
17 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
18 static const int16_t data1[] = {-1, 0, -3, 4, 5, 6, 7, 0, 0, 0, 8, 0, 0, 0, 0}; 17 static const int16_t data1[] = {-1, 0, -3, 4, 5, 6, 7, 0, 0, 0, 8, 0, 0, 0, 0};
19 static const char* expected1 = "0[-1 0 -3 4 5 6 7 0 0 0 8]"; 18 static const char* expected1 = "0[-1 0 -3 4 5 6 7 0 0 0 8]";
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), NULL, 0, expected12); 198 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), NULL, 0, expected12);
200 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), subset12, 199 TestWData(reporter, data12, SK_ARRAY_COUNT(data12), subset12,
201 SK_ARRAY_COUNT(subset12), expectedSubset12); 200 SK_ARRAY_COUNT(subset12), expectedSubset12);
202 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), NULL, 0, expected13); 201 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), NULL, 0, expected13);
203 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), subset13, 202 TestWData(reporter, data13, SK_ARRAY_COUNT(data13), subset13,
204 SK_ARRAY_COUNT(subset13), expectedSubset13); 203 SK_ARRAY_COUNT(subset13), expectedSubset13);
205 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), NULL, 0, expected14); 204 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), NULL, 0, expected14);
206 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), subset14, 205 TestWData(reporter, data14, SK_ARRAY_COUNT(data14), subset14,
207 SK_ARRAY_COUNT(subset14), expectedSubset14); 206 SK_ARRAY_COUNT(subset14), expectedSubset14);
208 } 207 }
OLDNEW
« no previous file with comments | « tests/UtilsTest.cpp ('k') | tests/WritePixelsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698