From 067be92ae8fe2e82529c4b23db8df58d05028558 Mon Sep 17 00:00:00 2001 From: Siva Date: Mon, 26 Mar 2018 22:16:48 -0700 Subject: [PATCH] Roll engine to version dd6f46c485192f4506035088c9065b9f5dbba9ab (#15885) Roll engine to version dd6f46c485192f4506035088c9065b9f5dbba9ab --- bin/internal/engine.version | 2 +- packages/flutter_driver/test/flutter_driver_test.dart | 6 +++--- .../test/fuchsia_remote_connection_test.dart | 3 ++- .../test/src/runners/ssh_command_runner_test.dart | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/internal/engine.version b/bin/internal/engine.version index 6eb648f514..5bf8936cd3 100644 --- a/bin/internal/engine.version +++ b/bin/internal/engine.version @@ -1 +1 @@ -6280adbfb1f9f63cdc6179b9b78634add1e4f2e3 +dd6f46c485192f4506035088c9065b9f5dbba9ab diff --git a/packages/flutter_driver/test/flutter_driver_test.dart b/packages/flutter_driver/test/flutter_driver_test.dart index 1a9228625a..dcb08dad41 100644 --- a/packages/flutter_driver/test/flutter_driver_test.dart +++ b/packages/flutter_driver/test/flutter_driver_test.dart @@ -29,7 +29,7 @@ void main() { void expectLogContains(String message) { expect(log.map((LogRecord r) => '$r'), anyElement(contains(message))); } - + setUp(() { log = []; logSub = flutterDriverLog.listen(log.add); @@ -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.value(mockVM)); when(mockVM.isolates).thenReturn([mockIsolate]); - when(mockIsolate.loadRunnable()).thenReturn(mockIsolate); + when(mockIsolate.loadRunnable()).thenReturn(new Future.value(mockIsolate)); when(mockIsolate.invokeExtension(typed(any), typed(any))).thenAnswer( (Invocation invocation) => makeMockResponse({'status': 'ok'})); vmServiceConnectFunction = (String url) { diff --git a/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart b/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart index 7d7bab6f6f..172a9a8210 100644 --- a/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart +++ b/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart @@ -31,7 +31,8 @@ void main() { const String interface = 'eno1'; // Adds some extra junk to make sure the strings will be cleaned up. when(mockRunner.run(typed(any))) - .thenReturn(['123\n\n\n', '456 ', '789']); + .thenReturn(new Future>.value( + ['123\n\n\n', '456 ', '789'])); when(mockRunner.address).thenReturn(address); when(mockRunner.interface).thenReturn(interface); int port = 0; diff --git a/packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart b/packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart index 068ce16481..83f7fbc56b 100644 --- a/packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart +++ b/packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart @@ -40,7 +40,8 @@ void main() { setUp(() { mockProcessManager = new MockProcessManager(); mockProcessResult = new MockProcessResult(); - when(mockProcessManager.run(typed(any))).thenReturn(mockProcessResult); + when(mockProcessManager.run(typed(any))).thenReturn( + new Future.value(mockProcessResult)); }); test('verify interface is appended to ipv6 address', () async {