Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::MockFlutterEngineTest Class Reference

#include <FlutterEngineTestUtils.h>

Inheritance diagram for flutter::testing::MockFlutterEngineTest:
flutter::testing::AutoreleasePoolTest flutter::testing::AutoreleasePoolTestMixin

Public Member Functions

 MockFlutterEngineTest ()
 
void SetUp () override
 
void TearDown () override
 
id GetMockEngine ()
 
void ShutDownEngine ()
 
 ~MockFlutterEngineTest ()
 
- Public Member Functions inherited from flutter::testing::AutoreleasePoolTest
 AutoreleasePoolTest ()=default
 
 ~AutoreleasePoolTest ()=default
 
- Public Member Functions inherited from flutter::testing::AutoreleasePoolTestMixin
 AutoreleasePoolTestMixin ()=default
 
 ~AutoreleasePoolTestMixin ()=default
 

Detailed Description

Definition at line 48 of file FlutterEngineTestUtils.h.

Constructor & Destructor Documentation

◆ MockFlutterEngineTest()

flutter::testing::MockFlutterEngineTest::MockFlutterEngineTest ( )
default

◆ ~MockFlutterEngineTest()

flutter::testing::MockFlutterEngineTest::~MockFlutterEngineTest ( )
inline

Definition at line 59 of file FlutterEngineTestUtils.h.

59 {
60 [engine_mock_ shutDownEngine];
61 [engine_mock_ stopMocking];
62 }

Member Function Documentation

◆ GetMockEngine()

id flutter::testing::MockFlutterEngineTest::GetMockEngine ( )
inline

Definition at line 55 of file FlutterEngineTestUtils.h.

55{ return engine_mock_; }

◆ SetUp()

void flutter::testing::MockFlutterEngineTest::SetUp ( )
override

Definition at line 94 of file FlutterEngineTestUtils.mm.

94 {
95 engine_mock_ = CreateMockFlutterEngine(@"");
96}
id CreateMockFlutterEngine(NSString *pasteboardString)

◆ ShutDownEngine()

void flutter::testing::MockFlutterEngineTest::ShutDownEngine ( )

Definition at line 104 of file FlutterEngineTestUtils.mm.

104 {
105 [engine_mock_ shutDownEngine];
106 engine_mock_ = nil;
107}

◆ TearDown()

void flutter::testing::MockFlutterEngineTest::TearDown ( )
override

Definition at line 98 of file FlutterEngineTestUtils.mm.

98 {
99 [engine_mock_ shutDownEngine];
100 [engine_mock_ stopMocking];
101 engine_mock_ = nil;
102}

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