/third_party/skia/tests/ |
H A D | SkStringViewTest.cpp | 14 REPORTER_ASSERT(r, empty.data() == nullptr); in DEF_TEST() 15 REPORTER_ASSERT(r, empty.length() == 0); in DEF_TEST() 19 REPORTER_ASSERT(r, helloWorld.data() == str); in DEF_TEST() 20 REPORTER_ASSERT(r, helloWorld.length() == strlen(str)); in DEF_TEST() 23 REPORTER_ASSERT(r, hello.data() == str); in DEF_TEST() 24 REPORTER_ASSERT(r, hello.length() == 5); in DEF_TEST() 27 REPORTER_ASSERT(r, copy.data() == str); in DEF_TEST() 28 REPORTER_ASSERT(r, copy.length() == 5); in DEF_TEST() 31 REPORTER_ASSERT(r, copy.data() == str); in DEF_TEST() 32 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | SkTOptionalTest.cpp | 15 REPORTER_ASSERT(r, !o); in DEF_TEST() 16 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST() 21 REPORTER_ASSERT(r, !o); in DEF_TEST() 22 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST() 28 REPORTER_ASSERT(r, !strcmp(o.value_or("Hello"), "Hello")); in DEF_TEST() 32 REPORTER_ASSERT(r, !strcmp(o.value_or("Hello"), "Bye")); in DEF_TEST() 37 REPORTER_ASSERT(r, *a == 5); in DEF_TEST() 42 REPORTER_ASSERT(r, *a == 3); in DEF_TEST() 48 REPORTER_ASSERT(r, o); in DEF_TEST() 49 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | UtilsTest.cpp | 35 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref() 38 REPORTER_ASSERT(reporter, &obj == tmp.get()); in test_autounref() 39 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref() 41 REPORTER_ASSERT(reporter, &obj == tmp.release()); in test_autounref() 42 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref() 43 REPORTER_ASSERT(reporter, nullptr == tmp.release()); in test_autounref() 44 REPORTER_ASSERT(reporter, nullptr == tmp.get()); in test_autounref() 47 REPORTER_ASSERT(reporter, !obj.unique()); in test_autounref() 51 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref() 57 REPORTER_ASSERT(reporte in test_autostarray() [all...] |
H A D | BackendSurfaceMutableStateTest.cpp | 30 REPORTER_ASSERT(reporter, backendTex.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 33 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 41 REPORTER_ASSERT(reporter, backendTexCopy.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 42 REPORTER_ASSERT(reporter, initLayout == info.fImageLayout); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 43 REPORTER_ASSERT(reporter, initQueue == info.fCurrentQueueFamily); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 49 REPORTER_ASSERT(reporter, backendTex.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 50 REPORTER_ASSERT(reporter, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL == info.fImageLayout); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 51 REPORTER_ASSERT(reporter, VK_QUEUE_FAMILY_IGNORED == info.fCurrentQueueFamily); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 53 REPORTER_ASSERT(reporter, backendTexCopy.getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 54 REPORTER_ASSERT(reporte in DEF_GPUTEST_FOR_VULKAN_CONTEXT() [all...] |
H A D | SkNxTest.cpp | 23 REPORTER_ASSERT(r, ok); in test_Nf() 27 REPORTER_ASSERT(r, ok); in test_Nf() 61 REPORTER_ASSERT(r, (a == b).allTrue()); in test_Nf() 62 REPORTER_ASSERT(r, (a+b == a*b-b).anyTrue()); in test_Nf() 63 REPORTER_ASSERT(r, !(a+b == a*b-b).allTrue()); in test_Nf() 64 REPORTER_ASSERT(r, !(a+b == a*b).anyTrue()); in test_Nf() 65 REPORTER_ASSERT(r, !(a != b).anyTrue()); in test_Nf() 66 REPORTER_ASSERT(r, (a < fours).anyTrue()); in test_Nf() 67 REPORTER_ASSERT(r, (a <= fours).anyTrue()); in test_Nf() 68 REPORTER_ASSERT( in test_Nf() [all...] |
H A D | SkSLMemoryLayoutTest.cpp | 23 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fFloat)); in DEF_TEST() 24 REPORTER_ASSERT(r, 8 == layout.size(*context.fTypes.fFloat2)); in DEF_TEST() 25 REPORTER_ASSERT(r, 12 == layout.size(*context.fTypes.fFloat3)); in DEF_TEST() 26 REPORTER_ASSERT(r, 16 == layout.size(*context.fTypes.fFloat4)); in DEF_TEST() 27 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fInt)); in DEF_TEST() 28 REPORTER_ASSERT(r, 8 == layout.size(*context.fTypes.fInt2)); in DEF_TEST() 29 REPORTER_ASSERT(r, 12 == layout.size(*context.fTypes.fInt3)); in DEF_TEST() 30 REPORTER_ASSERT(r, 16 == layout.size(*context.fTypes.fInt4)); in DEF_TEST() 31 REPORTER_ASSERT(r, 1 == layout.size(*context.fTypes.fBool)); in DEF_TEST() 32 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | TArrayTest.cpp | 20 REPORTER_ASSERT(reporter, a.empty()); in TestTSet_basic() 21 REPORTER_ASSERT(reporter, a.count() == 0); in TestTSet_basic() 25 REPORTER_ASSERT(reporter, !a.empty()); in TestTSet_basic() 26 REPORTER_ASSERT(reporter, a.count() == 1); in TestTSet_basic() 30 REPORTER_ASSERT(reporter, a.empty()); in TestTSet_basic() 31 REPORTER_ASSERT(reporter, a.count() == 0); in TestTSet_basic() 35 REPORTER_ASSERT(reporter, a.push_back() = 1); in TestTSet_basic() 37 REPORTER_ASSERT(reporter, !a.empty()); in TestTSet_basic() 38 REPORTER_ASSERT(reporter, a.count() == 1); in TestTSet_basic() 39 REPORTER_ASSERT(reporte in TestTSet_basic() [all...] |
H A D | StringTest.cpp | 23 REPORTER_ASSERT(reporter, a.isEmpty()); in DEF_TEST() 24 REPORTER_ASSERT(reporter, a == b && a == c && a == d); in DEF_TEST() 32 REPORTER_ASSERT(reporter, !a.isEmpty()); in DEF_TEST() 33 REPORTER_ASSERT(reporter, a.size() == 5); in DEF_TEST() 34 REPORTER_ASSERT(reporter, a == b && a == c && a == d); in DEF_TEST() 35 REPORTER_ASSERT(reporter, a.equals("hello", 5)); in DEF_TEST() 36 REPORTER_ASSERT(reporter, a.equals("hello")); in DEF_TEST() 37 REPORTER_ASSERT(reporter, !a.equals("help")); in DEF_TEST() 39 REPORTER_ASSERT(reporter, a.startsWith("hell")); in DEF_TEST() 40 REPORTER_ASSERT(reporte in DEF_TEST() [all...] |
H A D | ArenaAllocTest.cpp | 37 REPORTER_ASSERT(r, *arena.make<int>(3) == 3); in DEF_TEST() 39 REPORTER_ASSERT(r, foo->x == 3); in DEF_TEST() 40 REPORTER_ASSERT(r, foo->y == 4.0f); in DEF_TEST() 41 REPORTER_ASSERT(r, created == 1); in DEF_TEST() 42 REPORTER_ASSERT(r, destroyed == 0); in DEF_TEST() 46 REPORTER_ASSERT(r, zeroed[i] == 0); in DEF_TEST() 49 REPORTER_ASSERT(r, fooArray[3].x == -2); in DEF_TEST() 50 REPORTER_ASSERT(r, fooArray[4].y == -3.0f); in DEF_TEST() 51 REPORTER_ASSERT(r, created == 11); in DEF_TEST() 52 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | BitSetTest.cpp | 15 REPORTER_ASSERT(reporter, set0.size() == 65536); in DEF_TEST() 16 REPORTER_ASSERT(reporter, set0.test(0) == false); in DEF_TEST() 17 REPORTER_ASSERT(reporter, set0.test(32767) == false); in DEF_TEST() 18 REPORTER_ASSERT(reporter, set0.test(65535) == false); in DEF_TEST() 19 REPORTER_ASSERT(reporter, !set0.findFirst()); in DEF_TEST() 22 REPORTER_ASSERT(reporter, set0.test(22) == true); in DEF_TEST() 23 REPORTER_ASSERT(reporter, set0.findFirst()); in DEF_TEST() 24 REPORTER_ASSERT(reporter, *set0.findFirst() == 22); in DEF_TEST() 26 REPORTER_ASSERT(reporter, set0.test(24) == true); in DEF_TEST() 27 REPORTER_ASSERT(reporte in DEF_TEST() [all...] |
H A D | TLazyTest.cpp | 14 REPORTER_ASSERT(r, !lazy.isValid()); in DEF_TEST() 15 REPORTER_ASSERT(r, lazy.getMaybeNull() == nullptr); in DEF_TEST() 19 REPORTER_ASSERT(r, !lazy_copy.isValid()); in DEF_TEST() 20 REPORTER_ASSERT(r, lazy_copy.getMaybeNull() == nullptr); in DEF_TEST() 25 REPORTER_ASSERT(r, lazy.isValid()); in DEF_TEST() 26 REPORTER_ASSERT(r, 42 == *lazy.get()); in DEF_TEST() 30 REPORTER_ASSERT(r, lazy_copy.isValid()); in DEF_TEST() 31 REPORTER_ASSERT(r, 42 == *lazy_copy.get()); in DEF_TEST() 32 REPORTER_ASSERT(r, lazy.get() != lazy_copy.get()); in DEF_TEST() 41 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | ResourceCacheTest.cpp | 72 REPORTER_ASSERT(reporter, curCacheSize <= maxCacheSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 123 REPORTER_ASSERT(reporter, smallRT0); in DEF_GPUTEST_FOR_CONTEXTS() 128 REPORTER_ASSERT(reporter, smallRT1); in DEF_GPUTEST_FOR_CONTEXTS() 130 REPORTER_ASSERT(reporter, get_SB(smallRT0.get()) == get_SB(smallRT1.get())); in DEF_GPUTEST_FOR_CONTEXTS() 136 REPORTER_ASSERT(reporter, smallRT2); in DEF_GPUTEST_FOR_CONTEXTS() 138 REPORTER_ASSERT(reporter, get_SB(smallRT0.get()) == get_SB(smallRT2.get())); in DEF_GPUTEST_FOR_CONTEXTS() 144 REPORTER_ASSERT(reporter, bigRT); in DEF_GPUTEST_FOR_CONTEXTS() 146 REPORTER_ASSERT(reporter, get_SB(smallRT0.get()) != get_SB(bigRT.get())); in DEF_GPUTEST_FOR_CONTEXTS() 155 REPORTER_ASSERT(reporter, smallMSAART0); in DEF_GPUTEST_FOR_CONTEXTS() 157 REPORTER_ASSERT(reporte in DEF_GPUTEST_FOR_CONTEXTS() [all...] |
H A D | MathTest.cpp | 24 REPORTER_ASSERT(reporter, 32 == SkCLZ(0)); in test_clz() 25 REPORTER_ASSERT(reporter, 31 == SkCLZ(1)); in test_clz() 26 REPORTER_ASSERT(reporter, 1 == SkCLZ(1 << 30)); in test_clz() 27 REPORTER_ASSERT(reporter, 1 == SkCLZ((1 << 30) | (1 << 24) | 1)); in test_clz() 28 REPORTER_ASSERT(reporter, 0 == SkCLZ(~0U)); in test_clz() 38 REPORTER_ASSERT(reporter, intri == porta, "mask:%d intri:%d porta:%d", mask, intri, porta); in test_clz() 43 REPORTER_ASSERT(reporter, 32 == SkCTZ(0)); in test_ctz() 44 REPORTER_ASSERT(reporter, 0 == SkCTZ(1)); in test_ctz() 45 REPORTER_ASSERT(reporter, 30 == SkCTZ(1 << 30)); in test_ctz() 46 REPORTER_ASSERT(reporte in test_ctz() [all...] |
H A D | HashTest.cpp | 28 REPORTER_ASSERT(r, map.count() == 1); in DEF_TEST() 30 REPORTER_ASSERT(r, map.approxBytesUsed() > 0); in DEF_TEST() 33 REPORTER_ASSERT(r, found); in DEF_TEST() 34 REPORTER_ASSERT(r, *found == 4.0); in DEF_TEST() 37 REPORTER_ASSERT(r, count(map) == 1); in DEF_TEST() 40 REPORTER_ASSERT(r, found); in DEF_TEST() 41 REPORTER_ASSERT(r, *found == -3.0); in DEF_TEST() 43 REPORTER_ASSERT(r, !map.find(2)); in DEF_TEST() 53 REPORTER_ASSERT(r, iter->first * 2 == (*iter).second); in DEF_TEST() 58 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | SkBlockAllocatorTest.cpp | 80 REPORTER_ASSERT(r, stack.preallocSize() == sizeof(SkBlockAllocator)); in DEF_TEST() 81 REPORTER_ASSERT(r, stack.preallocUsableSpace() == (size_t) stack.currentBlock()->avail()); in DEF_TEST() 87 REPORTER_ASSERT(r, placement->preallocSize() == 1024); in DEF_TEST() 88 REPORTER_ASSERT(r, placement->preallocUsableSpace() < 1024 && in DEF_TEST() 96 REPORTER_ASSERT(r, inlined->preallocSize() == 2048); in DEF_TEST() 97 REPORTER_ASSERT(r, inlined->preallocUsableSpace() < 2048 && in DEF_TEST() 111 REPORTER_ASSERT(r, pt % align == 0); in DEF_TEST() 113 REPORTER_ASSERT(r, br.fEnd - br.fAlignedOffset >= size); in DEF_TEST() 115 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart >= 0); in DEF_TEST() 116 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | SkVxTest.cpp | 48 REPORTER_ASSERT(r, mask[0] == int32_t( 0)); in DEF_TEST() 49 REPORTER_ASSERT(r, mask[1] == int32_t( 0)); in DEF_TEST() 50 REPORTER_ASSERT(r, mask[2] == int32_t(-1)); in DEF_TEST() 51 REPORTER_ASSERT(r, mask[3] == int32_t(-1)); in DEF_TEST() 53 REPORTER_ASSERT(r, any(mask)); in DEF_TEST() 54 REPORTER_ASSERT(r, !all(mask)); in DEF_TEST() 59 REPORTER_ASSERT(r, mask[0] == int64_t( 0)); in DEF_TEST() 60 REPORTER_ASSERT(r, mask[1] == int64_t( 0)); in DEF_TEST() 61 REPORTER_ASSERT(r, mask[2] == int64_t(-1)); in DEF_TEST() 62 REPORTER_ASSERT( in DEF_TEST() [all...] |
H A D | TemplatesTest.cpp | 17 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 23 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 27 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 31 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 43 REPORTER_ASSERT(reporter, array[i] == 10 - i); in test_automalloc_realloc() 47 REPORTER_ASSERT(reporter, array[i] == 10 - i); in test_automalloc_realloc() 51 REPORTER_ASSERT(reporter, array[0] = 10); in test_automalloc_realloc() 59 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 65 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 67 REPORTER_ASSERT(reporte in test_automalloc_realloc() [all...] |
H A D | GifTest.cpp | 60 REPORTER_ASSERT(r, imageDecodeSuccess); in test_gif_data_no_colormap() 61 REPORTER_ASSERT(r, bm.width() == 1); in test_gif_data_no_colormap() 62 REPORTER_ASSERT(r, bm.height() == 1); in test_gif_data_no_colormap() 63 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_no_colormap() 65 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap() 71 REPORTER_ASSERT(r, imageDecodeSuccess); in test_gif_data() 72 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data() 73 REPORTER_ASSERT(r, bm.height() == 3); in test_gif_data() 74 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data() 76 REPORTER_ASSERT( in test_gif_data() [all...] |
H A D | MatrixTest.cpp | 52 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI); in are_equal() 55 REPORTER_ASSERT(reporter, foundZeroSignDiff); in are_equal() 66 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI); in are_equal() 69 REPORTER_ASSERT(reporter, foundNaN); in are_equal() 87 REPORTER_ASSERT(reporter, buffer[0] == a); in assert9() 88 REPORTER_ASSERT(reporter, buffer[1] == b); in assert9() 89 REPORTER_ASSERT(reporter, buffer[2] == c); in assert9() 90 REPORTER_ASSERT(reporter, buffer[3] == d); in assert9() 91 REPORTER_ASSERT(reporter, buffer[4] == e); in assert9() 92 REPORTER_ASSERT(reporte in assert9() [all...] |
H A D | RoundRectTest.cpp | 35 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii() 51 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524() 76 REPORTER_ASSERT(reporter, !r.isEmpty()); in test_empty() 77 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty() 80 REPORTER_ASSERT(reporter, !r.isEmpty()); in test_empty() 81 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty() 84 REPORTER_ASSERT(reporter, !r.isEmpty()); in test_empty() 85 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty() 88 REPORTER_ASSERT(reporter, !r.isEmpty()); in test_empty() 89 REPORTER_ASSERT(reporte in test_empty() [all...] |
H A D | VkBackendSurfaceTest.cpp | 50 REPORTER_ASSERT(reporter, mbet->texture().getVkImageInfo(&info)); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 59 REPORTER_ASSERT(reporter, drmFormat == drmBETex.getBackendFormat()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 60 REPORTER_ASSERT(reporter, drmBETex.textureType() == GrTextureType::kExternal); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 69 REPORTER_ASSERT(reporter, drmImage); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 71 REPORTER_ASSERT(reporter, in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 75 REPORTER_ASSERT(reporter, view); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 77 REPORTER_ASSERT(reporter, proxy); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 79 REPORTER_ASSERT(reporter, proxy->readOnly()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 82 REPORTER_ASSERT(reporter, surf); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 83 REPORTER_ASSERT(reporte in DEF_GPUTEST_FOR_VULKAN_CONTEXT() [all...] |
H A D | RefCntTest.cpp | 32 REPORTER_ASSERT(reporter, ref->unique()); in test_refCnt() 66 REPORTER_ASSERT(reporter, ref->unique()); in test_weakRefCnt() 67 SkDEBUGCODE(REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1)); in test_weakRefCnt() 84 REPORTER_ASSERT(reporter, gRefCounter == ref); \ 85 REPORTER_ASSERT(reporter, gUnrefCounter == unref); \ 86 REPORTER_ASSERT(reporter, gNewCounter == make); \ 87 REPORTER_ASSERT(reporter, gDeleteCounter == kill) 154 REPORTER_ASSERT(reporter, paint.fEffect.get() == nullptr); in DEF_TEST() 155 REPORTER_ASSERT(reporter, !paint.get()); in DEF_TEST() 160 REPORTER_ASSERT(reporte in DEF_TEST() [all...] |
H A D | RegionTest.cpp | 18 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) 19 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) 20 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) 85 REPORTER_ASSERT(reporter, empty.isEmpty()); in test_empties() 86 REPORTER_ASSERT(reporter, !valid.isEmpty()); in test_empties() 89 REPORTER_ASSERT(reporter, !empty.intersects(empty2)); in test_empties() 90 REPORTER_ASSERT(reporter, !valid.intersects(empty)); in test_empties() 93 REPORTER_ASSERT(reporter, !empty.contains(empty2)); in test_empties() 94 REPORTER_ASSERT(reporter, !valid.contains(empty)); in test_empties() 95 REPORTER_ASSERT(reporte in test_empties() [all...] |
/third_party/skia/modules/skottie/tests/ |
H A D | Keyframe.cpp | 49 REPORTER_ASSERT(reporter, !prop); in DEF_TEST() 53 REPORTER_ASSERT(reporter, !prop); in DEF_TEST() 65 REPORTER_ASSERT(reporter, prop); in DEF_TEST() 66 REPORTER_ASSERT(reporter, !prop.isStatic()); in DEF_TEST() 67 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( -1), 1)); in DEF_TEST() 68 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( 0), 1)); in DEF_TEST() 69 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( 1), 1)); in DEF_TEST() 70 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop(1.5), 1.5f)); in DEF_TEST() 71 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( 2), 2)); in DEF_TEST() 72 REPORTER_ASSERT(reporte in DEF_TEST() [all...] |
/third_party/skia/modules/skparagraph/tests/ |
H A D | SkParagraphTest.cpp | 223 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST() 226 REPORTER_ASSERT(reporter, impl->runs().size() == 1); in UNIX_ONLY_TEST() 227 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count in UNIX_ONLY_TEST() 228 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style)); in UNIX_ONLY_TEST() 235 REPORTER_ASSERT(reporter, index == 0); in UNIX_ONLY_TEST() 236 REPORTER_ASSERT(reporter, style.getColor() == SK_ColorBLACK); in UNIX_ONLY_TEST() 267 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST() 272 REPORTER_ASSERT(reporter, impl->lines().size() == 1); in UNIX_ONLY_TEST() 276 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(metrics.fWidth, fontSize * len, EPSILON2)); in UNIX_ONLY_TEST() 344 REPORTER_ASSERT(reporte in UNIX_ONLY_TEST() [all...] |