Apply Mockito-related type fixes (#16002)

Type-related fixes in flutter_driver and fuchsia_remote_debug_protocol
tests.
This commit is contained in:
Chris Bracken
2018-03-27 15:27:24 -07:00
committed by GitHub
parent 040fbd2947
commit 39eeec47d6
3 changed files with 6 additions and 4 deletions

View File

@@ -37,9 +37,9 @@ void main() {
mockVM = new MockVM();
mockIsolate = new MockIsolate();
mockPeer = new MockPeer();
when(mockClient.getVM()).thenReturn(mockVM);
when(mockClient.getVM()).thenReturn(new Future<MockVM>.value(mockVM));
when(mockVM.isolates).thenReturn(<VMRunnableIsolate>[mockIsolate]);
when(mockIsolate.loadRunnable()).thenReturn(mockIsolate);
when(mockIsolate.loadRunnable()).thenReturn(new Future<MockIsolate>.value(mockIsolate));
when(mockIsolate.invokeExtension(typed(any), typed(any))).thenAnswer(
(Invocation invocation) => makeMockResponse(<String, dynamic>{'status': 'ok'}));
vmServiceConnectFunction = (String url) {