forked from firka/flutter
Download and handle product version of flutter patched sdk (#31063)
* Support release/debug flavors of flutter_patched_sdk * Use [anyNamed] instead of [any] for mocking named arguments * Fix use of local engine in release mode
This commit is contained in:
committed by
GitHub
parent
4ef0292790
commit
d775908c7e
@@ -114,7 +114,8 @@ void main() {
|
||||
mockXcode = MockXcode();
|
||||
bufferLogger = BufferLogger();
|
||||
for (BuildMode mode in BuildMode.values) {
|
||||
when(mockArtifacts.getArtifactPath(Artifact.snapshotDart, any, mode)).thenReturn(kSnapshotDart);
|
||||
when(mockArtifacts.getArtifactPath(Artifact.snapshotDart,
|
||||
platform: anyNamed('platform'), mode: mode)).thenReturn(kSnapshotDart);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -552,9 +553,11 @@ void main() {
|
||||
mockArtifacts = MockArtifacts();
|
||||
|
||||
for (BuildMode mode in BuildMode.values) {
|
||||
when(mockArtifacts.getArtifactPath(Artifact.vmSnapshotData, null, mode))
|
||||
when(mockArtifacts.getArtifactPath(Artifact.vmSnapshotData,
|
||||
platform: anyNamed('platform'), mode: mode))
|
||||
.thenReturn(kEngineVmSnapshotData);
|
||||
when(mockArtifacts.getArtifactPath(Artifact.isolateSnapshotData, null, mode))
|
||||
when(mockArtifacts.getArtifactPath(Artifact.isolateSnapshotData,
|
||||
platform: anyNamed('platform'), mode: mode))
|
||||
.thenReturn(kEngineIsolateSnapshotData);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user