* Revert "Revert "Simplify path handling logic in dependency checker and devFS (#8414)" (#8467)"
This reverts commit 96ba7f76d2.
* Intentionally use a self-package URI in flutter_gallery
* tests to catch problems with self-package imports
This commit is contained in:
committed by
GitHub
parent
6571b41f40
commit
65835af4e6
@@ -95,6 +95,8 @@ class BasicMock {
|
||||
}
|
||||
|
||||
class MockDevFSOperations extends BasicMock implements DevFSOperations {
|
||||
Map<String, DevFSContent> devicePathToContent = <String, DevFSContent>{};
|
||||
|
||||
@override
|
||||
Future<Uri> create(String fsName) async {
|
||||
messages.add('create $fsName');
|
||||
@@ -109,10 +111,12 @@ class MockDevFSOperations extends BasicMock implements DevFSOperations {
|
||||
@override
|
||||
Future<dynamic> writeFile(String fsName, String devicePath, DevFSContent content) async {
|
||||
messages.add('writeFile $fsName $devicePath');
|
||||
devicePathToContent[devicePath] = content;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<dynamic> deleteFile(String fsName, String devicePath) async {
|
||||
messages.add('deleteFile $fsName $devicePath');
|
||||
devicePathToContent.remove(devicePath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user