From 5ff4512832c9002f3d1fb04519ee3861b3b9e1f7 Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Thu, 20 Jun 2019 17:37:03 -0700 Subject: [PATCH] Added unit tests for the ios code. (flutter/engine#9388) * Added unit tests for the ios code. * Moved the tests to live next to the source. * Added mocking library. * Fixed formatting and removed third_party from the format check. * fixed formatting 2 * Removed ocmock from third_party. * Added ocmock to third_party, compile from source. * removed ocmock from license checking * updated licenses_flutter * updated tool_signature --- DEPS | 7 + .../ci/licenses_golden/licenses_flutter | 1 + .../flutter/ci/licenses_golden/tool_signature | 2 +- .../ios/framework/Source/FlutterEngineTest.mm | 27 + .../ios/IosUnitTests/App/AppDelegate.h | 11 + .../ios/IosUnitTests/App/AppDelegate.m | 33 + .../AppIcon.appiconset/Contents.json | 98 +++ .../App/Assets.xcassets/Contents.json | 6 + .../App/Base.lproj/LaunchScreen.storyboard | 25 + .../App/Base.lproj/Main.storyboard | 24 + .../testing/ios/IosUnitTests/App/Info.plist | 45 ++ .../ios/IosUnitTests/App/ViewController.h | 9 + .../ios/IosUnitTests/App/ViewController.m | 16 + .../testing/ios/IosUnitTests/App/main.m | 12 + .../IosUnitTests.xcodeproj/project.pbxproj | 669 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../testing/ios/IosUnitTests/Tests/Info.plist | 22 + .../testing/ios/IosUnitTests/run_tests.sh | 9 + .../src/flutter/tools/licenses/lib/main.dart | 1 + 20 files changed, 1031 insertions(+), 1 deletion(-) create mode 100644 engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.h create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.m create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/Contents.json create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/LaunchScreen.storyboard create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/Main.storyboard create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/Info.plist create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.h create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.m create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/App/main.m create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.pbxproj create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 engine/src/flutter/testing/ios/IosUnitTests/Tests/Info.plist create mode 100755 engine/src/flutter/testing/ios/IosUnitTests/run_tests.sh diff --git a/DEPS b/DEPS index 234073619a..2d23450099 100644 --- a/DEPS +++ b/DEPS @@ -24,6 +24,8 @@ vars = { 'fuchsia_git': 'https://fuchsia.googlesource.com', 'github_git': 'https://github.com', 'skia_git': 'https://skia.googlesource.com', + # OCMock is for testing only so there is no google clone + 'ocmock_git': 'https://github.com/erikdoe/ocmock.git', 'skia_revision': '0c64a545176a0f0231bca2f9acc247bd3177588e', # When updating the Dart revision, ensure that all entries that are @@ -100,6 +102,8 @@ vars = { 'dart_web_socket_channel_tag': '1.0.9', 'dart_yaml_tag': '2.1.15', + 'ocmock_tag': 'v3.4.3', + # Build bot tooling for iOS 'ios_tools_revision': '69b7c1b160e7107a6a98d948363772dc9caea46f', @@ -376,6 +380,9 @@ deps = { 'src/third_party/skia': Var('skia_git') + '/skia.git' + '@' + Var('skia_revision'), + 'src/third_party/ocmock': + Var('ocmock_git') + '@' + Var('ocmock_tag'), + 'src/third_party/libjpeg-turbo': Var('fuchsia_git') + '/third_party/libjpeg-turbo' + '@' + '0fb821f3b2e570b2783a94ccd9a2fb1f4916ae9f', diff --git a/engine/src/flutter/ci/licenses_golden/licenses_flutter b/engine/src/flutter/ci/licenses_golden/licenses_flutter index b339e0a5bd..d877f2acf5 100644 --- a/engine/src/flutter/ci/licenses_golden/licenses_flutter +++ b/engine/src/flutter/ci/licenses_golden/licenses_flutter @@ -687,6 +687,7 @@ FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterCallbac FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject_Internal.h FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterEngine.mm +FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterEngine_Internal.h FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterHeadlessDartRunner.mm FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterObservatoryPublisher.h diff --git a/engine/src/flutter/ci/licenses_golden/tool_signature b/engine/src/flutter/ci/licenses_golden/tool_signature index 3651454560..420e7603c2 100644 --- a/engine/src/flutter/ci/licenses_golden/tool_signature +++ b/engine/src/flutter/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: 79db3ae5f054461f1e7fc34ff6ffdf06 +Signature: 987c7f6d5aa9e61354f5aff08b26462b diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm new file mode 100644 index 0000000000..9eece3f5ec --- /dev/null +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm @@ -0,0 +1,27 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterEngine_Internal.h" + +@interface FlutteEngineTest : XCTestCase +@end + +@implementation FlutteEngineTest + +- (void)setUp { +} + +- (void)tearDown { +} + +- (void)testCreate { + id project = OCMClassMock([FlutterDartProject class]); + FlutterEngine* engine = [[[FlutterEngine alloc] initWithName:@"foobar" + project:project] autorelease]; + XCTAssertNotNil(engine); +} + +@end diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.h b/engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.h new file mode 100644 index 0000000000..b9c2cbb009 --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.h @@ -0,0 +1,11 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +@interface AppDelegate : UIResponder + +@property(strong, nonatomic) UIWindow* window; + +@end diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.m b/engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.m new file mode 100644 index 0000000000..9e22f24ef0 --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/AppDelegate.m @@ -0,0 +1,33 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + +- (BOOL)application:(UIApplication*)application + didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { + return YES; +} + +- (void)applicationWillResignActive:(UIApplication*)application { +} + +- (void)applicationDidEnterBackground:(UIApplication*)application { +} + +- (void)applicationWillEnterForeground:(UIApplication*)application { +} + +- (void)applicationDidBecomeActive:(UIApplication*)application { +} + +- (void)applicationWillTerminate:(UIApplication*)application { +} + +@end diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000..d8db8d65fd --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/Contents.json b/engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/Contents.json new file mode 100644 index 0000000000..da4a164c91 --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/LaunchScreen.storyboard b/engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000..bfa3612941 --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/Main.storyboard b/engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/Main.storyboard new file mode 100644 index 0000000000..942f0bc452 --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/Info.plist b/engine/src/flutter/testing/ios/IosUnitTests/App/Info.plist new file mode 100644 index 0000000000..16be3b6811 --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.h b/engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.h new file mode 100644 index 0000000000..4f235259bf --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.h @@ -0,0 +1,9 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +@interface ViewController : UIViewController + +@end diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.m b/engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.m new file mode 100644 index 0000000000..4c2a76d84f --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/ViewController.m @@ -0,0 +1,16 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "ViewController.h" + +@interface ViewController () +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; +} + +@end diff --git a/engine/src/flutter/testing/ios/IosUnitTests/App/main.m b/engine/src/flutter/testing/ios/IosUnitTests/App/main.m new file mode 100644 index 0000000000..ba5b91ad39 --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/App/main.m @@ -0,0 +1,12 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.pbxproj b/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..ed344fbc8e --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.pbxproj @@ -0,0 +1,669 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 0D6AB6B622BB05E100EEE540 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D6AB6B522BB05E100EEE540 /* AppDelegate.m */; }; + 0D6AB6B922BB05E100EEE540 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D6AB6B822BB05E100EEE540 /* ViewController.m */; }; + 0D6AB6BC22BB05E100EEE540 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0D6AB6BA22BB05E100EEE540 /* Main.storyboard */; }; + 0D6AB6BE22BB05E200EEE540 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0D6AB6BD22BB05E200EEE540 /* Assets.xcassets */; }; + 0D6AB6C122BB05E200EEE540 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0D6AB6BF22BB05E200EEE540 /* LaunchScreen.storyboard */; }; + 0D6AB6C422BB05E200EEE540 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D6AB6C322BB05E200EEE540 /* main.m */; }; + 0D6AB6EB22BB40E700EEE540 /* FlutterEngineTest.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0D6AB6E722BB40CF00EEE540 /* FlutterEngineTest.mm */; }; + 0D6AB72C22BC339F00EEE540 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0D6AB72522BC336100EEE540 /* libOCMock.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 0D6AB6CA22BB05E200EEE540 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0D6AB6A922BB05E100EEE540 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0D6AB6B022BB05E100EEE540; + remoteInfo = IosUnitTests; + }; + 0D6AB72022BC336100EEE540 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 030EF0A814632FD000B04273; + remoteInfo = OCMock; + }; + 0D6AB72222BC336100EEE540 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 03565A3118F0566E003AE91E; + remoteInfo = OCMockTests; + }; + 0D6AB72422BC336100EEE540 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 030EF0DC14632FF700B04273; + remoteInfo = OCMockLib; + }; + 0D6AB72622BC336100EEE540 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = D31108AD1828DB8700737925; + remoteInfo = OCMockLibTests; + }; + 0D6AB72822BC336100EEE540 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = F0B950F11B0080BE00942C38; + remoteInfo = "OCMock iOS"; + }; + 0D6AB72A22BC336100EEE540 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 817EB1621BD765130047E85A; + remoteInfo = "OCMock tvOS"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0D6AB6B122BB05E100EEE540 /* IosUnitTests.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IosUnitTests.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 0D6AB6B422BB05E100EEE540 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 0D6AB6B522BB05E100EEE540 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 0D6AB6B722BB05E100EEE540 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 0D6AB6B822BB05E100EEE540 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 0D6AB6BB22BB05E100EEE540 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 0D6AB6BD22BB05E200EEE540 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 0D6AB6C022BB05E200EEE540 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 0D6AB6C222BB05E200EEE540 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0D6AB6C322BB05E200EEE540 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 0D6AB6C922BB05E200EEE540 /* IosUnitTestsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IosUnitTestsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 0D6AB6CF22BB05E200EEE540 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0D6AB6E722BB40CF00EEE540 /* FlutterEngineTest.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FlutterEngineTest.mm; sourceTree = ""; }; + 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = OCMock.xcodeproj; path = ../../../../../third_party/ocmock/Source/OCMock.xcodeproj; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 0D6AB6AE22BB05E100EEE540 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0D6AB6C622BB05E200EEE540 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0D6AB72C22BC339F00EEE540 /* libOCMock.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0D6AB6A822BB05E100EEE540 = { + isa = PBXGroup; + children = ( + 0D6AB6B322BB05E100EEE540 /* App */, + 0D6AB6CC22BB05E200EEE540 /* Tests */, + 0D6AB6B222BB05E100EEE540 /* Products */, + 0D6AB6FC22BC1BC300EEE540 /* Frameworks */, + ); + sourceTree = ""; + }; + 0D6AB6B222BB05E100EEE540 /* Products */ = { + isa = PBXGroup; + children = ( + 0D6AB6B122BB05E100EEE540 /* IosUnitTests.app */, + 0D6AB6C922BB05E200EEE540 /* IosUnitTestsTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 0D6AB6B322BB05E100EEE540 /* App */ = { + isa = PBXGroup; + children = ( + 0D6AB6B422BB05E100EEE540 /* AppDelegate.h */, + 0D6AB6B522BB05E100EEE540 /* AppDelegate.m */, + 0D6AB6B722BB05E100EEE540 /* ViewController.h */, + 0D6AB6B822BB05E100EEE540 /* ViewController.m */, + 0D6AB6BA22BB05E100EEE540 /* Main.storyboard */, + 0D6AB6BD22BB05E200EEE540 /* Assets.xcassets */, + 0D6AB6BF22BB05E200EEE540 /* LaunchScreen.storyboard */, + 0D6AB6C222BB05E200EEE540 /* Info.plist */, + 0D6AB6C322BB05E200EEE540 /* main.m */, + ); + path = App; + sourceTree = ""; + }; + 0D6AB6CC22BB05E200EEE540 /* Tests */ = { + isa = PBXGroup; + children = ( + 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */, + 0D6AB6E622BB409F00EEE540 /* Source */, + 0D6AB6CF22BB05E200EEE540 /* Info.plist */, + ); + path = Tests; + sourceTree = ""; + }; + 0D6AB6E622BB409F00EEE540 /* Source */ = { + isa = PBXGroup; + children = ( + 0D6AB6E722BB40CF00EEE540 /* FlutterEngineTest.mm */, + ); + name = Source; + path = ../../../../shell/platform/darwin/ios/framework/Source; + sourceTree = ""; + }; + 0D6AB6FC22BC1BC300EEE540 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + 0D6AB71822BC336100EEE540 /* Products */ = { + isa = PBXGroup; + children = ( + 0D6AB72122BC336100EEE540 /* OCMock.framework */, + 0D6AB72322BC336100EEE540 /* OCMockTests.xctest */, + 0D6AB72522BC336100EEE540 /* libOCMock.a */, + 0D6AB72722BC336100EEE540 /* OCMockLibTests.xctest */, + 0D6AB72922BC336100EEE540 /* OCMock.framework */, + 0D6AB72B22BC336100EEE540 /* OCMock.framework */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 0D6AB6B022BB05E100EEE540 /* IosUnitTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0D6AB6D222BB05E200EEE540 /* Build configuration list for PBXNativeTarget "IosUnitTests" */; + buildPhases = ( + 0D6AB6AD22BB05E100EEE540 /* Sources */, + 0D6AB6AE22BB05E100EEE540 /* Frameworks */, + 0D6AB6AF22BB05E100EEE540 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = IosUnitTests; + productName = IosUnitTests; + productReference = 0D6AB6B122BB05E100EEE540 /* IosUnitTests.app */; + productType = "com.apple.product-type.application"; + }; + 0D6AB6C822BB05E200EEE540 /* IosUnitTestsTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0D6AB6D522BB05E200EEE540 /* Build configuration list for PBXNativeTarget "IosUnitTestsTests" */; + buildPhases = ( + 0D6AB6C522BB05E200EEE540 /* Sources */, + 0D6AB6C622BB05E200EEE540 /* Frameworks */, + 0D6AB6C722BB05E200EEE540 /* Resources */, + 0D6AB6E122BB122F00EEE540 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 0D6AB6CB22BB05E200EEE540 /* PBXTargetDependency */, + ); + name = IosUnitTestsTests; + productName = IosUnitTestsTests; + productReference = 0D6AB6C922BB05E200EEE540 /* IosUnitTestsTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 0D6AB6A922BB05E100EEE540 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = "Aaron Clarke"; + TargetAttributes = { + 0D6AB6B022BB05E100EEE540 = { + CreatedOnToolsVersion = 10.2.1; + }; + 0D6AB6C822BB05E200EEE540 = { + CreatedOnToolsVersion = 10.2.1; + TestTargetID = 0D6AB6B022BB05E100EEE540; + }; + }; + }; + buildConfigurationList = 0D6AB6AC22BB05E100EEE540 /* Build configuration list for PBXProject "IosUnitTests" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 0D6AB6A822BB05E100EEE540; + productRefGroup = 0D6AB6B222BB05E100EEE540 /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = 0D6AB71822BC336100EEE540 /* Products */; + ProjectRef = 0D6AB71722BC336100EEE540 /* OCMock.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + 0D6AB6B022BB05E100EEE540 /* IosUnitTests */, + 0D6AB6C822BB05E200EEE540 /* IosUnitTestsTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + 0D6AB72122BC336100EEE540 /* OCMock.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = OCMock.framework; + remoteRef = 0D6AB72022BC336100EEE540 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0D6AB72322BC336100EEE540 /* OCMockTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = OCMockTests.xctest; + remoteRef = 0D6AB72222BC336100EEE540 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0D6AB72522BC336100EEE540 /* libOCMock.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libOCMock.a; + remoteRef = 0D6AB72422BC336100EEE540 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0D6AB72722BC336100EEE540 /* OCMockLibTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = OCMockLibTests.xctest; + remoteRef = 0D6AB72622BC336100EEE540 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0D6AB72922BC336100EEE540 /* OCMock.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = OCMock.framework; + remoteRef = 0D6AB72822BC336100EEE540 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0D6AB72B22BC336100EEE540 /* OCMock.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = OCMock.framework; + remoteRef = 0D6AB72A22BC336100EEE540 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + 0D6AB6AF22BB05E100EEE540 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0D6AB6C122BB05E200EEE540 /* LaunchScreen.storyboard in Resources */, + 0D6AB6BE22BB05E200EEE540 /* Assets.xcassets in Resources */, + 0D6AB6BC22BB05E100EEE540 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0D6AB6C722BB05E200EEE540 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 0D6AB6E122BB122F00EEE540 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "TARGET_FRAMEWORKS_PATH=\"$TARGET_BUILD_DIR/../Frameworks\"\nFRAMEWORK_PATH=`find $PWD/../../../../out/ios_debug_sim_unopt -name Flutter.framework`\ncp -R \"$FRAMEWORK_PATH\" \"$TARGET_FRAMEWORKS_PATH\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 0D6AB6AD22BB05E100EEE540 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0D6AB6B922BB05E100EEE540 /* ViewController.m in Sources */, + 0D6AB6C422BB05E200EEE540 /* main.m in Sources */, + 0D6AB6B622BB05E100EEE540 /* AppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0D6AB6C522BB05E200EEE540 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0D6AB6EB22BB40E700EEE540 /* FlutterEngineTest.mm in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 0D6AB6CB22BB05E200EEE540 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 0D6AB6B022BB05E100EEE540 /* IosUnitTests */; + targetProxy = 0D6AB6CA22BB05E200EEE540 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 0D6AB6BA22BB05E100EEE540 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 0D6AB6BB22BB05E100EEE540 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 0D6AB6BF22BB05E200EEE540 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 0D6AB6C022BB05E200EEE540 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 0D6AB6D022BB05E200EEE540 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 0D6AB6D122BB05E200EEE540 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 0D6AB6D322BB05E200EEE540 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = App/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Tests", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.google.flutter.IosUnitTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 0D6AB6D422BB05E200EEE540 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = App/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Tests", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.google.flutter.IosUnitTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 0D6AB6D622BB05E200EEE540 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_ENABLE_OBJC_ARC = NO; + CODE_SIGN_STYLE = Automatic; + HEADER_SEARCH_PATHS = ( + ../../../.., + ../../../../flutter/shell/platform/darwin/common/framework/Headers, + ../../../../third_party/skia, + ../../../../third_party, + ../../../../third_party/rapidjson/include, + ../../../../flutter/third_party/txt/src, + ../../../../third_party/harfbuzz/src, + ../../../../third_party/icu/source/common, + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Tests", + ); + OTHER_LDFLAGS = ( + "-L", + ../../../../out/ios_debug_sim_unopt, + "-lFlutter", + "-lOCMock", + "-ObjC", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.google.flutter.IosUnitTestsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SYSTEM_HEADER_SEARCH_PATHS = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IosUnitTests.app/IosUnitTests"; + }; + name = Debug; + }; + 0D6AB6D722BB05E200EEE540 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_ENABLE_OBJC_ARC = NO; + CODE_SIGN_STYLE = Automatic; + HEADER_SEARCH_PATHS = ( + ../../../.., + ../../../../flutter/shell/platform/darwin/common/framework/Headers, + ../../../../third_party/skia, + ../../../../third_party, + ../../../../third_party/rapidjson/include, + ../../../../flutter/third_party/txt/src, + ../../../../third_party/harfbuzz/src, + ../../../../third_party/icu/source/common, + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Tests", + ); + OTHER_LDFLAGS = ( + "-L", + ../../../../out/ios_debug_sim_unopt, + "-lFlutter", + "-lOCMock", + "-ObjC", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.google.flutter.IosUnitTestsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SYSTEM_HEADER_SEARCH_PATHS = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IosUnitTests.app/IosUnitTests"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 0D6AB6AC22BB05E100EEE540 /* Build configuration list for PBXProject "IosUnitTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0D6AB6D022BB05E200EEE540 /* Debug */, + 0D6AB6D122BB05E200EEE540 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0D6AB6D222BB05E200EEE540 /* Build configuration list for PBXNativeTarget "IosUnitTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0D6AB6D322BB05E200EEE540 /* Debug */, + 0D6AB6D422BB05E200EEE540 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0D6AB6D522BB05E200EEE540 /* Build configuration list for PBXNativeTarget "IosUnitTestsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0D6AB6D622BB05E200EEE540 /* Debug */, + 0D6AB6D722BB05E200EEE540 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 0D6AB6A922BB05E100EEE540 /* Project object */; +} diff --git a/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000..d20e42b40a --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/IosUnitTests.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/engine/src/flutter/testing/ios/IosUnitTests/Tests/Info.plist b/engine/src/flutter/testing/ios/IosUnitTests/Tests/Info.plist new file mode 100644 index 0000000000..6c40a6cd0c --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/Tests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/engine/src/flutter/testing/ios/IosUnitTests/run_tests.sh b/engine/src/flutter/testing/ios/IosUnitTests/run_tests.sh new file mode 100755 index 0000000000..ee45a093ad --- /dev/null +++ b/engine/src/flutter/testing/ios/IosUnitTests/run_tests.sh @@ -0,0 +1,9 @@ +pushd $PWD +cd ../../../.. +./flutter/tools/gn --ios --simulator --unoptimized +ninja -j 100 -C out/ios_debug_sim_unopt/ +popd +xcodebuild -sdk iphonesimulator \ + -scheme IosUnitTests \ + -destination 'platform=iOS Simulator,name=iPhone SE,OS=12.2' \ + test \ No newline at end of file diff --git a/engine/src/flutter/tools/licenses/lib/main.dart b/engine/src/flutter/tools/licenses/lib/main.dart index 96087558be..45c6cbe25c 100644 --- a/engine/src/flutter/tools/licenses/lib/main.dart +++ b/engine/src/flutter/tools/licenses/lib/main.dart @@ -1754,6 +1754,7 @@ class _RepositoryRootThirdPartyDirectory extends _RepositoryGenericThirdPartyDir && entry.name != 'skia' // treated as a separate component && entry.name != 'fontconfig' // not used in standard configurations && entry.name != 'swiftshader' // only used on hosts for tests + && entry.name != 'ocmock' // only used for tests && super.shouldRecurse(entry); }