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

Side by Side Diff: tests/ToUnicode.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/TileGridTest.cpp ('k') | tests/Typeface.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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 "SkData.h" 9 #include "SkData.h"
11 #include "SkPDFTypes.h" 10 #include "SkPDFTypes.h"
12 #include "SkPDFFont.h" 11 #include "SkPDFFont.h"
13 #include "SkStream.h" 12 #include "SkStream.h"
14 13
15 static bool stream_equals(const SkDynamicMemoryWStream& stream, size_t offset, 14 static bool stream_equals(const SkDynamicMemoryWStream& stream, size_t offset,
16 const char* buffer, size_t len) { 15 const char* buffer, size_t len) {
17 SkAutoDataUnref data(stream.copyToData()); 16 SkAutoDataUnref data(stream.copyToData());
18 if (offset + len > data->size()) { 17 if (offset + len > data->size()) {
19 return false; 18 return false;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 <004F> <006C>\n\ 171 <004F> <006C>\n\
173 <0051> <006E>\n\ 172 <0051> <006E>\n\
174 endbfchar\n\ 173 endbfchar\n\
175 1 beginbfrange\n\ 174 1 beginbfrange\n\
176 <0056> <0057> <0073>\n\ 175 <0056> <0057> <0073>\n\
177 endbfrange\n"; 176 endbfrange\n";
178 177
179 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2, 178 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2,
180 buffer2.getOffset())); 179 buffer2.getOffset()));
181 } 180 }
OLDNEW
« no previous file with comments | « tests/TileGridTest.cpp ('k') | tests/Typeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698