// old code

ServicesBinding

defaultBinaryMessenger

setMockMessageHandler

(...);

ServicesBinding

defaultBinaryMessenger

checkMockMessageHandler

(...);

// new code

tester

binding

defaultBinaryMessenger

setMockMessageHandler

(...);

tester

binding

defaultBinaryMessenger

checkMockMessageHandler

(...);

// old code

myChannel

setMockMessageHandler

(...);

myChannel

checkMockMessageHandler

(...);

// new code

tester

binding

defaultBinaryMessenger