mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
parent
1a372afb37
commit
2e559584e2
@ -140,8 +140,7 @@ void main() {
|
||||
};
|
||||
|
||||
Future<json_rpc.Peer> mockVmConnectionFunction(Uri uri) {
|
||||
when(mockPeer.sendRequest(
|
||||
typed<String>(any), typed<Map<String, dynamic>>(any)))
|
||||
when(mockPeer.sendRequest(any, any))
|
||||
.thenAnswer((_) => new Future<Map<String, dynamic>>(
|
||||
() => flutterViewCannedResponses));
|
||||
return new Future<json_rpc.Peer>(() => mockPeer);
|
||||
@ -235,8 +234,7 @@ void main() {
|
||||
};
|
||||
|
||||
Future<json_rpc.Peer> mockVmConnectionFunction(Uri uri) {
|
||||
when(mockPeer.sendRequest(
|
||||
typed<String>(any), typed<Map<String, dynamic>>(any)))
|
||||
when(mockPeer.sendRequest(any, any))
|
||||
.thenAnswer((_) =>
|
||||
new Future<Map<String, dynamic>>(() => vmCannedResponse));
|
||||
return new Future<json_rpc.Peer>(() => mockPeer);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user