@@ -339,6 +339,8 @@ - (void)testAnnouncesLayoutChangeWithNilIfLastFocusIsRemoved {
339
339
/* rendering_api=*/ flutter::IOSRenderingAPI::kSoftware ,
340
340
/* task_runners=*/ runners);
341
341
id mockFlutterViewController = OCMClassMock ([FlutterViewController class ]);
342
+ id mockFlutterView = OCMClassMock ([FlutterView class ]);
343
+ OCMStub ([mockFlutterViewController view ]).andReturn (mockFlutterView);
342
344
343
345
NSMutableArray <NSDictionary <NSString *, id >*>* accessibility_notifications =
344
346
[[[NSMutableArray alloc ] init ] autorelease ];
@@ -402,6 +404,8 @@ - (void)testAnnouncesLayoutChangeWithLastFocused {
402
404
/* rendering_api=*/ flutter::IOSRenderingAPI::kSoftware ,
403
405
/* task_runners=*/ runners);
404
406
id mockFlutterViewController = OCMClassMock ([FlutterViewController class ]);
407
+ id mockFlutterView = OCMClassMock ([FlutterView class ]);
408
+ OCMStub ([mockFlutterViewController view ]).andReturn (mockFlutterView);
405
409
406
410
NSMutableArray <NSDictionary <NSString *, id >*>* accessibility_notifications =
407
411
[[[NSMutableArray alloc ] init ] autorelease ];
@@ -472,6 +476,8 @@ - (void)testAnnouncesScrollChangeWithLastFocused {
472
476
/* rendering_api=*/ flutter::IOSRenderingAPI::kSoftware ,
473
477
/* task_runners=*/ runners);
474
478
id mockFlutterViewController = OCMClassMock ([FlutterViewController class ]);
479
+ id mockFlutterView = OCMClassMock ([FlutterView class ]);
480
+ OCMStub ([mockFlutterViewController view ]).andReturn (mockFlutterView);
475
481
476
482
NSMutableArray <NSDictionary <NSString *, id >*>* accessibility_notifications =
477
483
[[[NSMutableArray alloc ] init ] autorelease ];
0 commit comments