Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
FakeBinaryMessengerRelay Class Reference
Inheritance diagram for FakeBinaryMessengerRelay:
FlutterBinaryMessengerRelay <FlutterBinaryMessenger>

Instance Methods

(void) - dealloc [implementation]
 
- Instance Methods inherited from FlutterBinaryMessengerRelay
(instancetype) - initWithParent:
 
(void) - sendOnChannel:message: [implementation]
 
(void) - sendOnChannel:message:binaryReply: [implementation]
 
(NSObject< FlutterTaskQueue > *) - makeBackgroundTaskQueue [implementation]
 TODO(gaaclarke): Remove optional when macos supports Background Platform Channels.
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler: [implementation]
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler:taskQueue: [implementation]
 
(void) - cleanUpConnection: [implementation]
 
- Instance Methods inherited from <FlutterBinaryMessenger>
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler:taskQueue:
 
(void) - sendOnChannel:message:
 
(void) - sendOnChannel:message:binaryReply:
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler:
 

Properties

BOOL failOnDealloc
 
- Properties inherited from FlutterBinaryMessengerRelay
NSObject< FlutterBinaryMessenger > * parent
 

Detailed Description

FlutterBinaryMessengerRelay used for testing that setting FlutterEngine.binaryMessenger to the current instance doesn't trigger a use-after-free bug.

See: testSetBinaryMessengerToSameBinaryMessenger

Definition at line 43 of file FlutterEngineTest.mm.

Method Documentation

◆ dealloc

- (void) dealloc
implementation

Definition at line 44 of file FlutterEngineTest.mm.

48 {
49 if (_failOnDealloc) {
50 XCTFail("FakeBinaryMessageRelay should not be deallocated");
51 }
52}

Property Documentation

◆ failOnDealloc

- (BOOL) failOnDealloc
readwritenonatomicassign

Definition at line 44 of file FlutterEngineTest.mm.


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