From e413395074108a1eab0a40ea063c09b2096c18ee Mon Sep 17 00:00:00 2001 From: Aaron Clarke Date: Fri, 14 Aug 2020 10:29:52 -0700 Subject: [PATCH] Fixed the accessibility ios unit tests by sending in mock view controllers instead of views. --- .../framework/Source/accessibility_bridge_test.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/platform/darwin/ios/framework/Source/accessibility_bridge_test.mm b/shell/platform/darwin/ios/framework/Source/accessibility_bridge_test.mm index affabb9d3baab..c19c130db0044 100644 --- a/shell/platform/darwin/ios/framework/Source/accessibility_bridge_test.mm +++ b/shell/platform/darwin/ios/framework/Source/accessibility_bridge_test.mm @@ -338,7 +338,7 @@ - (void)testAnnouncesLayoutChangeWithNilIfLastFocusIsRemoved { /*delegate=*/mock_delegate, /*rendering_api=*/flutter::IOSRenderingAPI::kSoftware, /*task_runners=*/runners); - id mockFlutterView = OCMClassMock([FlutterView class]); + id mockFlutterViewController = OCMClassMock([FlutterViewController class]); NSMutableArray*>* accessibility_notifications = [[[NSMutableArray alloc] init] autorelease]; @@ -351,7 +351,7 @@ - (void)testAnnouncesLayoutChangeWithNilIfLastFocusIsRemoved { }]; }; __block auto bridge = - std::make_unique(/*view=*/mockFlutterView, + std::make_unique(/*view_controller=*/mockFlutterViewController, /*platform_view=*/platform_view.get(), /*platform_views_controller=*/nil, /*ios_delegate=*/std::move(ios_delegate)); @@ -401,7 +401,7 @@ - (void)testAnnouncesLayoutChangeWithLastFocused { /*delegate=*/mock_delegate, /*rendering_api=*/flutter::IOSRenderingAPI::kSoftware, /*task_runners=*/runners); - id mockFlutterView = OCMClassMock([FlutterView class]); + id mockFlutterViewController = OCMClassMock([FlutterViewController class]); NSMutableArray*>* accessibility_notifications = [[[NSMutableArray alloc] init] autorelease]; @@ -414,7 +414,7 @@ - (void)testAnnouncesLayoutChangeWithLastFocused { }]; }; __block auto bridge = - std::make_unique(/*view=*/mockFlutterView, + std::make_unique(/*view_controller=*/mockFlutterViewController, /*platform_view=*/platform_view.get(), /*platform_views_controller=*/nil, /*ios_delegate=*/std::move(ios_delegate)); @@ -471,7 +471,7 @@ - (void)testAnnouncesScrollChangeWithLastFocused { /*delegate=*/mock_delegate, /*rendering_api=*/flutter::IOSRenderingAPI::kSoftware, /*task_runners=*/runners); - id mockFlutterView = OCMClassMock([FlutterView class]); + id mockFlutterViewController = OCMClassMock([FlutterViewController class]); NSMutableArray*>* accessibility_notifications = [[[NSMutableArray alloc] init] autorelease]; @@ -484,7 +484,7 @@ - (void)testAnnouncesScrollChangeWithLastFocused { }]; }; __block auto bridge = - std::make_unique(/*view=*/mockFlutterView, + std::make_unique(/*view_controller=*/mockFlutterViewController, /*platform_view=*/platform_view.get(), /*platform_views_controller=*/nil, /*ios_delegate=*/std::move(ios_delegate));