429 {
430 LaunchParentViewInRealm({"--showOverlay"});
431
432
433 ASSERT_TRUE(TakeScreenshotUntil(
434 kChildBackgroundColor,
435 [](std::map<fuchsia_test_utils::Pixel, uint32_t> histogram) {
436
437
438 const uint32_t overlay_pixel_count = OverlayPixelCount(histogram);
439 EXPECT_GT(histogram[kParentBackgroundColor], 0u);
440 EXPECT_GT(overlay_pixel_count, 0u);
441 EXPECT_GT(histogram[kChildBackgroundColor], 0u);
442 EXPECT_GT(histogram[kParentBackgroundColor],
443 histogram[kChildBackgroundColor]);
444 EXPECT_GT(overlay_pixel_count, histogram[kChildBackgroundColor]);
445 }));
446}