Commit e5528326 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

fix tests on Windows for flutter tools (#8322)

parent 0e8b6aab
......@@ -42,7 +42,7 @@ void testUsingContext(String description, dynamic testMethod(), {
// Initialize the test context with some default mocks.
// Seed these context entries first since others depend on them
testContext.putIfAbsent(Platform, () => new _FakePlatform());
testContext.putIfAbsent(Platform, () => const LocalPlatform());
testContext.putIfAbsent(FileSystem, () => const LocalFileSystem());
testContext.putIfAbsent(ProcessManager, () => const LocalProcessManager());
testContext.putIfAbsent(Logger, () => new BufferLogger());
......@@ -140,13 +140,6 @@ class MockSimControl extends Mock implements SimControl {
}
}
class _FakePlatform extends FakePlatform {
_FakePlatform() : super.fromPlatform(const LocalPlatform());
@override
bool get isWindows => false;
}
class MockOperatingSystemUtils extends Mock implements OperatingSystemUtils {}
class MockIOSSimulatorUtils extends Mock implements IOSSimulatorUtils {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment