Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
MockEngine Class Reference
Inheritance diagram for MockEngine:

Instance Methods

(FlutterViewController *) - viewController [implementation]
 
(void) - setViewController: [implementation]
 

Properties

FlutterDartProjectproject
 

Detailed Description

A simple mock class for FlutterEngine.

OCMClassMock can't be used for FlutterEngine sometimes because OCMock retains arguments to invocations and since the init for FlutterViewController calls a method on the FlutterEngine it creates a retain cycle that stops us from testing behaviors related to deleting FlutterViewControllers.

Used for testing deallocation.

Definition at line 99 of file FlutterViewControllerTest.mm.

Method Documentation

◆ setViewController:

- (void) setViewController: (FlutterViewController*)  viewController
implementation

Definition at line 100 of file FlutterViewControllerTest.mm.

◆ viewController

- (FlutterViewController *) viewController
implementation

Definition at line 100 of file FlutterViewControllerTest.mm.

104 {
105 return nil;
106}

Property Documentation

◆ project

- (FlutterDartProject*) project
readwritenonatomicstrong

Definition at line 100 of file FlutterViewControllerTest.mm.


The documentation for this class was generated from the following file: