@@ -313,8 +313,10 @@ TEST_F(EngineAnimatorTest, AnimatorAcceptsMultipleRenders) {
313313 engine_context->Run (std::move (configuration));
314314
315315 engine_context->EngineTaskSync ([](Engine& engine) {
316- engine.AddView (1 , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
317- engine.AddView (2 , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
316+ engine.AddView (1 , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
317+ [](bool added) { ASSERT_TRUE (added); });
318+ engine.AddView (2 , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
319+ [](bool added) { ASSERT_TRUE (added); });
318320 });
319321
320322 native_latch.Wait ();
@@ -368,8 +370,10 @@ TEST_F(EngineAnimatorTest, IgnoresOutOfFrameRenders) {
368370 std::move (animator));
369371
370372 engine_context->EngineTaskSync ([](Engine& engine) {
371- engine.AddView (1 , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
372- engine.AddView (2 , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
373+ engine.AddView (1 , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
374+ [](bool added) { ASSERT_TRUE (added); });
375+ engine.AddView (2 , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
376+ [](bool added) { ASSERT_TRUE (added); });
373377 });
374378
375379 auto configuration = RunConfiguration::InferFromSettings (settings_);
@@ -444,7 +448,8 @@ TEST_F(EngineAnimatorTest, IgnoresDuplicateRenders) {
444448 std::move (animator));
445449
446450 engine_context->EngineTaskSync ([](Engine& engine) {
447- engine.AddView (kFlutterImplicitViewId , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
451+ engine.AddView (kFlutterImplicitViewId , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
452+ [](bool added) { ASSERT_TRUE (added); });
448453 });
449454
450455 auto configuration = RunConfiguration::InferFromSettings (settings_);
@@ -504,7 +509,8 @@ TEST_F(EngineAnimatorTest, AnimatorSubmitsImplicitViewBeforeDrawFrameEnds) {
504509 std::move (animator));
505510
506511 engine_context->EngineTaskSync ([](Engine& engine) {
507- engine.AddView (kFlutterImplicitViewId , ViewportMetrics{1.0 , 10 , 10 , 1 , 0 });
512+ engine.AddView (kFlutterImplicitViewId , ViewportMetrics{1.0 , 10 , 10 , 1 , 0 },
513+ [](bool added) { ASSERT_TRUE (added); });
508514 });
509515
510516 auto configuration = RunConfiguration::InferFromSettings (settings_);
@@ -568,7 +574,8 @@ TEST_F(EngineAnimatorTest, AnimatorSubmitWarmUpImplicitView) {
568574 engine.ScheduleFrame (true );
569575 // Add the implicit view so that the engine recognizes it and that its
570576 // metrics is not empty.
571- engine.AddView (kFlutterImplicitViewId , ViewportMetrics{1.0 , 10 , 10 , 1 , 0 });
577+ engine.AddView (kFlutterImplicitViewId , ViewportMetrics{1.0 , 10 , 10 , 1 , 0 },
578+ [](bool added) { ASSERT_TRUE (added); });
572579 });
573580 continuation_ready_latch.Wait ();
574581
@@ -634,9 +641,12 @@ TEST_F(EngineAnimatorTest, AnimatorSubmitPartialViewsForWarmUp) {
634641 // Schedule a frame to make the animator create a continuation.
635642 engine.ScheduleFrame (true );
636643 // Add multiple views.
637- engine.AddView (0 , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
638- engine.AddView (1 , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
639- engine.AddView (2 , ViewportMetrics{1 , 10 , 10 , 22 , 0 });
644+ engine.AddView (0 , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
645+ [](bool added) { ASSERT_TRUE (added); });
646+ engine.AddView (1 , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
647+ [](bool added) { ASSERT_TRUE (added); });
648+ engine.AddView (2 , ViewportMetrics{1 , 10 , 10 , 22 , 0 },
649+ [](bool added) { ASSERT_TRUE (added); });
640650 });
641651
642652 continuation_ready_latch.Wait ();
0 commit comments