From 43d604e131bb57298e7e16f2a149aa386032529a Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Mon, 1 Feb 2021 15:02:25 -0800 Subject: [PATCH] Replace context FakeUsage with TestUsage (#75170) --- packages/flutter_tools/test/src/context.dart | 44 +------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/packages/flutter_tools/test/src/context.dart b/packages/flutter_tools/test/src/context.dart index a695e554dc..a6258809f3 100644 --- a/packages/flutter_tools/test/src/context.dart +++ b/packages/flutter_tools/test/src/context.dart @@ -126,7 +126,7 @@ void testUsingContext( OperatingSystemUtils: () => FakeOperatingSystemUtils(), PersistentToolState: () => buildPersistentToolState(globals.fs), SimControl: () => MockSimControl(), - Usage: () => FakeUsage(), + Usage: () => TestUsage(), XcodeProjectInterpreter: () => FakeXcodeProjectInterpreter(), FileSystem: () => LocalFileSystemBlockingSetCurrentDirectory(), PlistParser: () => FakePlistParser(), @@ -332,48 +332,6 @@ class FakeOperatingSystemUtils implements OperatingSystemUtils { class MockIOSSimulatorUtils extends Mock implements IOSSimulatorUtils {} -class FakeUsage implements Usage { - @override - bool get suppressAnalytics => false; - - @override - set suppressAnalytics(bool value) { } - - @override - bool get enabled => true; - - @override - set enabled(bool value) { } - - @override - String get clientId => '00000000-0000-4000-0000-000000000000'; - - @override - void sendCommand(String command, { Map parameters }) { } - - @override - void sendEvent(String category, String parameter, { - String label, - int value, - Map parameters, - }) { } - - @override - void sendTiming(String category, String variableName, Duration duration, { String label }) { } - - @override - void sendException(dynamic exception) { } - - @override - Stream> get onSend => null; - - @override - Future ensureAnalyticsSent() => Future.value(); - - @override - void printWelcome() { } -} - class FakeXcodeProjectInterpreter implements XcodeProjectInterpreter { @override bool get isInstalled => true;