tester

binding

defaultBinaryMessenger

setMockDecodedMessageHandler

myChannel

...);

tester

binding

defaultBinaryMessenger

checkMockMessageHandler

myChannel

...);

// old code

myMethodChannel

setMockMethodCallHandler

(...);

myMethodChannel

checkMockMethodCallHandler

(...);

// new code

tester

binding

defaultBinaryMessenger

setMockMethodCallHandler

myMethodChannel

...);

tester

binding

defaultBinaryMessenger

checkMockMessageHandler

myMethodChannel