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