Flutter Engine
The Flutter Engine
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 100 of file FlutterViewControllerTest.mm.

Method Documentation

◆ setViewController:

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

Definition at line 101 of file FlutterViewControllerTest.mm.

109 // noop
110}
FlutterViewController * viewController()

◆ viewController

- (FlutterViewController *) viewController
implementation

Definition at line 101 of file FlutterViewControllerTest.mm.

105 {
106 return nil;
107}

Property Documentation

◆ project

- (FlutterDartProject*) project
readwritenonatomicstrong

Definition at line 101 of file FlutterViewControllerTest.mm.


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