◆ testCreate
◆ testDoesntPassCallOn
- (void) testDoesntPassCallOn |
|
|
|
|
implementation |
Definition at line 100 of file FlutterBinaryMessengerRelayTest.mm.
41 {
45 char messageData[] = {'a', 'a', 'r', 'o', 'n'};
46 NSData*
message = [NSData dataWithBytes:messageData length:sizeof(messageData)];
47 NSString* channel = @"foobar";
50}
void sendOnChannel:message:binaryReply:(NSString *channel, [message] NSData *message, [binaryReply] FlutterBinaryReply callback)
◆ testMakeBackgroundTaskQueue
- (void) testMakeBackgroundTaskQueue |
|
|
|
|
implementation |
Definition at line 100 of file FlutterBinaryMessengerRelayTest.mm.
66 {
71 OCMVerify([messenger makeBackgroundTaskQueue]);
72}
NSObject< FlutterTaskQueue > * makeBackgroundTaskQueue()
TODO(gaaclarke): Remove optional when macos supports Background Platform Channels.
◆ testPassesCallOn
- (void) testPassesCallOn |
|
|
|
|
implementation |
Definition at line 100 of file FlutterBinaryMessengerRelayTest.mm.
30 {
34 char messageData[] = {'a', 'a', 'r', 'o', 'n'};
35 NSData*
message = [NSData dataWithBytes:messageData length:sizeof(messageData)];
36 NSString* channel = @"foobar";
38 OCMVerify([messenger sendOnChannel:channel
message:
message binaryReply:nil]);
39}
◆ testSetMessageHandlerWithTaskQueue
- (void) testSetMessageHandlerWithTaskQueue |
|
|
|
|
implementation |
Definition at line 100 of file FlutterBinaryMessengerRelayTest.mm.
52 {
56 NSString* channel = @"foobar";
59 };
61 OCMVerify([messenger setMessageHandlerOnChannel:channel
62 binaryMessageHandler:handler
63 taskQueue:taskQueue]);
64}
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterBinaryReply)(NSData *_Nullable reply)
void(^ FlutterBinaryMessageHandler)(NSData *_Nullable message, FlutterBinaryReply reply)
FlutterBinaryMessengerConnection setMessageHandlerOnChannel:binaryMessageHandler:taskQueue:(NSString *channel, [binaryMessageHandler] FlutterBinaryMessageHandler handler, [taskQueue] NSObject< FlutterTaskQueue > *taskQueue)
The documentation for this class was generated from the following file: