Searched refs:mockProcess (Results 1 – 10 of 10) sorted by relevance
26 MockProcess mockProcess;36 mockProcess = MockProcess();39 when(mockProcess.exitCode).thenAnswer((Invocation invocation) async {42 when(mockProcess.stderr).thenAnswer((Invocation invocation) {45 when(mockProcess.stdout).thenAnswer((Invocation invocation) {94 return mockProcess;
27 MockProcess mockProcess;38 mockProcess = MockProcess();41 when(mockProcess.exitCode).thenAnswer((Invocation invocation) async {44 when(mockProcess.stderr).thenAnswer((Invocation invocation) {47 when(mockProcess.stdout).thenAnswer((Invocation invocation) {105 return mockProcess;
26 MockProcess mockProcess;41 mockProcess = MockProcess();46 when(mockProcess.exitCode).thenAnswer((Invocation invocation) async {49 when(mockProcess.stderr).thenAnswer((Invocation invocation) {52 when(mockProcess.stdout).thenAnswer((Invocation invocation) {121 return mockProcess;
124 final MockProcess mockProcess = MockProcess();132 )).thenAnswer((Invocation invocation) => Future<Process>.value(mockProcess));134 when(mockProcess.stdin).thenReturn(mockStdIn);135 when(mockProcess.stdout)141 when(mockProcess.stderr).thenAnswer((Invocation invocation) => mockStdErr);142 when(mockProcess.exitCode).thenAnswer((_) async => 0);185 final MockProcess mockProcess = MockProcess();193 )).thenAnswer((Invocation invocation) => Future<Process>.value(mockProcess));195 when(mockProcess.stdin).thenReturn(mockStdIn);196 when(mockProcess.stdout)[all …]
322 final Process mockProcess = MockProcess();323 when(mockProcess.stdout)331 when(mockProcess.stderr)334 when(mockProcess.exitCode)336 return Future<Process>.value(mockProcess);
407 final Process mockProcess = MockProcess(416 return Future<Process>.value(mockProcess);432 final Process mockProcess = MockProcess(441 return Future<Process>.value(mockProcess);
106 MockProcess mockProcess;131 (List<String> commands) => mockProcess;159 mockProcess = MockProcess(
63 import { mockProcess } from './ohos_process'394 return mockProcess();
18 export function mockProcess() { function
222 MockProcess mockProcess;231 mockProcess = MockProcess();236 .thenAnswer((Invocation _) => Future<Process>.value(mockProcess));237 when(mockProcess.exitCode).thenAnswer((Invocation _) => exitCode.future);238 when(mockProcess.stdout).thenAnswer((Invocation _) => stdout.stream);239 when(mockProcess.stderr).thenAnswer((Invocation _) => stderr.stream);