From 5c1f986232f497cbc7fdb8e4b3a2f26214c5c55b Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Fri, 26 Jul 2019 12:17:22 -0700 Subject: [PATCH] Removed unnecessary call to find the App.framework. (flutter/engine#10178) --- .../ScenariosTests/FlutterViewControllerTest.m | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/FlutterViewControllerTest.m b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/FlutterViewControllerTest.m index aab0b0ce24..833f8a6afc 100644 --- a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/FlutterViewControllerTest.m +++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/FlutterViewControllerTest.m @@ -6,15 +6,6 @@ #import #import "AppDelegate.h" -static NSBundle* FindTestBundle() { - for (NSBundle* bundle in [NSBundle allBundles]) { - if ([bundle.bundlePath containsString:@".xctext"]) { - return bundle; - } - } - return nil; -} - @interface FlutterViewControllerTest : XCTestCase @property(nonatomic, strong) FlutterViewController* flutterViewController; @end @@ -27,16 +18,14 @@ static NSBundle* FindTestBundle() { } - (void)tearDown { - [super tearDown]; if (self.flutterViewController) { [self.flutterViewController removeFromParentViewController]; } + [super tearDown]; } - (void)testFirstFrameCallback { - NSBundle* bundle = FindTestBundle(); - FlutterDartProject* project = [[FlutterDartProject alloc] initWithPrecompiledDartBundle:bundle]; - FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"test" project:project]; + FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"test" project:nil]; [engine runWithEntrypoint:nil]; self.flutterViewController = [[FlutterViewController alloc] initWithEngine:engine nibName:nil