| Flutter iOS Embedder |

FlutterLaunchEngineTest.mm
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import <Foundation/Foundation.h>
6 #import <OCMock/OCMock.h>
7 #import <UIKit/UIKit.h>
8 #import <XCTest/XCTest.h>
9
10 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterLaunchEngine.h"
11
12 FLUTTER_ASSERT_ARC;
13
14 @interface FlutterLaunchEngineTest : XCTestCase
15 @end
16
17 @implementation FlutterLaunchEngineTest
18
19 - (void)testSimple {
20 FlutterLaunchEngine* launchEngine = [[FlutterLaunchEngine alloc] init];
21 XCTAssertTrue(launchEngine.engine);
22 XCTAssertTrue([launchEngine takeEngine]);
23 XCTAssertFalse(launchEngine.engine);
24 }
25
26 @end
FlutterLaunchEngine.h
FLUTTER_ASSERT_ARC
FLUTTER_ASSERT_ARC
Definition: FlutterLaunchEngineTest.mm:12
FlutterLaunchEngine
Definition: FlutterLaunchEngine.h:23
FlutterLaunchEngine::engine
FlutterEngine * engine
Definition: FlutterLaunchEngine.h:29
FlutterLaunchEngineTest
Definition: FlutterLaunchEngineTest.mm:15