Lines Matching refs:TestUtils
43 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
56 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
59 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
63 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
87 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
92 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
96 auto halfGreenNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
111 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
114 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
115 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN); in RENDERTHREAD_SKIA_PIPELINE_TEST()
118 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned int)SK_ColorTRANSPARENT); in RENDERTHREAD_SKIA_PIPELINE_TEST()
119 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN); in RENDERTHREAD_SKIA_PIPELINE_TEST()
123 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
135 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
138 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
139 ASSERT_EQ(TestUtils::getColor(surface, 1, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
140 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
141 ASSERT_EQ(TestUtils::getColor(surface, 1, 1), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
145 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
151 ASSERT_EQ(TestUtils::getColor(surfaceLayer1, 0, 0), SK_ColorWHITE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
156 auto blueNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
162 ASSERT_EQ(TestUtils::getColor(surfaceLayer2, 0, 0), SK_ColorWHITE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
179 ASSERT_EQ(TestUtils::getColor(surfaceLayer1, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST()
180 ASSERT_EQ(TestUtils::getColor(surfaceLayer2, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
181 ASSERT_EQ(TestUtils::getColor(surfaceLayer2, 0, 1), SK_ColorWHITE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
190 auto whiteNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
206 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
211 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorWHITE); in RENDERTHREAD_SKIA_PIPELINE_TEST()
217 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffd0d0ff); in RENDERTHREAD_SKIA_PIPELINE_TEST()
223 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffd0ffd0); in RENDERTHREAD_SKIA_PIPELINE_TEST()
229 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffffc0c0); in RENDERTHREAD_SKIA_PIPELINE_TEST()
235 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffff8080); in RENDERTHREAD_SKIA_PIPELINE_TEST()
241 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned)0xffff8080); in RENDERTHREAD_SKIA_PIPELINE_TEST()
269 EXPECT_EQ(SkRect::MakeLTRB(600, 100, 700, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
274 EXPECT_EQ(SkRect::MakeLTRB(100, 400, 600, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
279 EXPECT_EQ(SkRect::MakeLTRB(100, 100, 700, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
284 EXPECT_EQ(SkRect::MakeLTRB(0, 0, 800, 600), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
300 nodes.push_back(TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
308 nodes.push_back(TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
315 nodes.push_back(TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
338 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 30, 40), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
345 nodes.push_back(TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
348 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(CANVAS_WIDTH, CANVAS_HEIGHT)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
375 TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
382 nodes.push_back(TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()
385 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(CANVAS_WIDTH, CANVAS_HEIGHT)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
405 EXPECT_EQ(SkRect::MakeLTRB(20, 10, 30, 40), TestUtils::getClipBounds(this)) in RENDERTHREAD_SKIA_PIPELINE_TEST()
412 nodes.push_back(TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST()