OLD | NEW |
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 #include "SkTypes.h" | 7 #include "SkTypes.h" |
8 | 8 |
9 #include "Test.h" | 9 #include "Test.h" |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 streamCanvas.drawPosText("A", 1, &point, paint); | 107 streamCanvas.drawPosText("A", 1, &point, paint); |
108 | 108 |
109 REPORTER_ASSERT(reporter, | 109 REPORTER_ASSERT(reporter, |
110 compare(origBitmap, origRect, streamBitmap, streamRect))
; | 110 compare(origBitmap, origRect, streamBitmap, streamRect))
; |
111 } | 111 } |
112 //Make sure the typeface is deleted and removed. | 112 //Make sure the typeface is deleted and removed. |
113 SkGraphics::PurgeFontCache(); | 113 SkGraphics::PurgeFontCache(); |
114 } | 114 } |
115 | 115 |
116 #include "TestClassDef.h" | 116 #include "TestClassDef.h" |
117 DEFINE_TESTCLASS("FontHost::CreateTypefaceFromStream", FontHostStreamTestClass,
test_fontHostStream) | 117 DEFINE_TESTCLASS_SHORT(test_fontHostStream) |
OLD | NEW |