440 {
441 LaunchParentViewInRealm({"--showOverlay"});
442
443
444 ASSERT_TRUE(TakeScreenshotUntil(
445 kChildBackgroundColor,
446 [](std::map<fuchsia_test_utils::Pixel, uint32_t> histogram) {
447
448
449 const uint32_t overlay_pixel_count = OverlayPixelCount(histogram);
450 EXPECT_GT(histogram[kParentBackgroundColor], 0u);
451 EXPECT_GT(overlay_pixel_count, 0u);
452 EXPECT_GT(histogram[kChildBackgroundColor], 0u);
453 EXPECT_GT(histogram[kParentBackgroundColor],
454 histogram[kChildBackgroundColor]);
455 EXPECT_GT(overlay_pixel_count, histogram[kChildBackgroundColor]);
456 }));
457}