Home
last modified time | relevance | path

Searched refs:mockFile (Results 1 – 7 of 7) sorted by relevance

/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/
Dpackage_uri_mapper_test.dart27 MockFile mockFile;
31 mockFile = MockFile();
33 when(mockFileSystem.file(any)).thenReturn(mockFile);
34 when(mockFile.readAsBytesSync()).thenReturn(utf8.encode(packagesContents));
62 final MockFile mockFile = MockFile();
64 when(mockFileSystem.file(any)).thenReturn(mockFile);
65 when(mockFile.readAsBytesSync())
Dcache_test.dart27 MockFile mockFile;
33 mockFile = MockFile();
57 when(mockFileSystem.file(argThat(endsWith('lockfile')))).thenReturn(mockFile);
58 when(mockFile.openSync(mode: anyNamed('mode'))).thenReturn(mockRandomAccessFile);
67 when(mockFileSystem.file(argThat(endsWith('lockfile')))).thenReturn(mockFile);
68 when(mockFile.openSync(mode: anyNamed('mode'))).thenThrow(const FileSystemException());
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/macos/
Dmacos_device_test.dart74 final MockFile mockFile = MockFile();
76 when(mockFileSystem.file('test')).thenReturn(mockFile);
77 when(mockFile.existsSync()).thenReturn(true);
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dsystem_file.js18 export function mockFile() { function
Dindex.js182 import { mockFile } from './system_file'
202 return mockFile();
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/fuchsia/
Dfuchsia_device_test.dart158 MockFile mockFile;
165 mockFile = MockFile();
175 when(mockFile.absolute).thenReturn(mockFile);
176 when(mockFile.path).thenReturn('');
206 sshConfig: mockFile,
207 devFinder: mockFile,
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/ios/
Dsimulators_test.dart220 final MockFile mockFile = MockFile();
221 when(mockFile.path).thenReturn(fs.path.join('some', 'path', 'to', 'screenshot.png'));
222 await deviceUnderTest.takeScreenshot(mockFile);