Unverified Commit bad5df55 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] remove MockFeatureFlags (#75259)

parent ada04e6c
...@@ -26,6 +26,7 @@ import 'package:yaml/yaml.dart'; ...@@ -26,6 +26,7 @@ import 'package:yaml/yaml.dart';
import '../src/common.dart'; import '../src/common.dart';
import '../src/context.dart'; import '../src/context.dart';
import '../src/pubspec_schema.dart'; import '../src/pubspec_schema.dart';
import '../src/testbed.dart';
void main() { void main() {
group('plugins', () { group('plugins', () {
...@@ -1167,12 +1168,10 @@ flutter: ...@@ -1167,12 +1168,10 @@ flutter:
}); });
group('createPluginSymlinks', () { group('createPluginSymlinks', () {
MockFeatureFlags featureFlags; FeatureFlags featureFlags;
setUp(() { setUp(() {
featureFlags = MockFeatureFlags(); featureFlags = TestFeatureFlags(isLinuxEnabled: true, isWindowsEnabled: true);
when(featureFlags.isLinuxEnabled).thenReturn(true);
when(featureFlags.isWindowsEnabled).thenReturn(true);
}); });
testUsingContext('Symlinks are created for Linux plugins', () async { testUsingContext('Symlinks are created for Linux plugins', () async {
...@@ -1397,7 +1396,6 @@ flutter: ...@@ -1397,7 +1396,6 @@ flutter:
} }
class MockAndroidProject extends Mock implements AndroidProject {} class MockAndroidProject extends Mock implements AndroidProject {}
class MockFeatureFlags extends Mock implements FeatureFlags {}
class MockFlutterProject extends Mock implements FlutterProject {} class MockFlutterProject extends Mock implements FlutterProject {}
class MockIosProject extends Mock implements IosProject {} class MockIosProject extends Mock implements IosProject {}
class MockMacOSProject extends Mock implements MacOSProject {} class MockMacOSProject extends Mock implements MacOSProject {}
......
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