Revert "[flutter_tools] migrate FlutterView to new vm_service (#55341)" (#55772)

This reverts commit 2e50fd75eb.
This commit is contained in:
Jonah Williams
2020-04-27 14:26:56 -07:00
committed by GitHub
parent 2e50fd75eb
commit 07c451fea9
13 changed files with 368 additions and 533 deletions

View File

@@ -242,11 +242,6 @@ class FakeVmServiceHost {
.having((Map<String, Object> request) => request['id'], 'id', fakeRequest.id)
.having((Map<String, Object> request) => request['params'], 'args', fakeRequest.args)
);
if (fakeRequest.close) {
_vmService.dispose();
expect(_requests, isEmpty);
return;
}
if (fakeRequest.errorCode == null) {
_input.add(json.encode(<String, Object>{
'jsonrpc': '2.0',
@@ -303,15 +298,11 @@ class FakeVmServiceRequest implements VmServiceExpectation {
@required this.args,
this.jsonResponse,
this.errorCode,
this.close = false,
});
final String method;
final String id;
/// When true, the vm service is automatically closed.
final bool close;
/// If non-null, the error code for a [vm_service.RPCError] in place of a
/// standard response.
final int errorCode;