Remove unused l and --isolate-filter tools (#63336)
This commit is contained in:
committed by
GitHub
parent
ba92cbedd8
commit
cb69bbb4d5
@@ -207,20 +207,6 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
testUsingContext('FlutterDevice can list views with a filter', () => testbed.run(() async {
|
||||
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[
|
||||
listViews,
|
||||
]);
|
||||
final MockDevice mockDevice = MockDevice();
|
||||
final FlutterDevice flutterDevice = FlutterDevice(
|
||||
mockDevice,
|
||||
buildInfo: BuildInfo.debug,
|
||||
viewFilter: 'b', // Does not match name of `fakeFlutterView`.
|
||||
);
|
||||
|
||||
flutterDevice.vmService = fakeVmServiceHost.vmService;
|
||||
}));
|
||||
|
||||
testUsingContext('ResidentRunner can attach to device successfully', () => testbed.run(() async {
|
||||
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[
|
||||
listViews,
|
||||
@@ -1640,17 +1626,6 @@ void main() {
|
||||
expect(fakeVmServiceHost.hasRemainingExpectations, false);
|
||||
}));
|
||||
|
||||
testUsingContext('listViews handles a null VM service', () => testbed.run(() async {
|
||||
final FlutterDevice device = FlutterDevice(mockDevice, buildInfo: BuildInfo.debug);
|
||||
final ResidentRunner residentRunner = HotRunner(
|
||||
<FlutterDevice>[device],
|
||||
debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug)
|
||||
);
|
||||
|
||||
expect(await residentRunner.listFlutterViews(), isEmpty);
|
||||
}));
|
||||
|
||||
|
||||
testUsingContext('ResidentRunner debugDumpApp calls flutter device', () => testbed.run(() async {
|
||||
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
|
||||
await residentRunner.debugDumpApp();
|
||||
|
||||
@@ -8,7 +8,6 @@ import 'package:flutter_tools/src/build_info.dart';
|
||||
import 'package:flutter_tools/src/compile.dart';
|
||||
import 'package:flutter_tools/src/device.dart';
|
||||
import 'package:flutter_tools/src/resident_runner.dart';
|
||||
import 'package:flutter_tools/src/vmservice.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
|
||||
import '../src/common.dart';
|
||||
@@ -155,19 +154,6 @@ void main() {
|
||||
|
||||
});
|
||||
|
||||
testUsingContext('l - list flutter views', () async {
|
||||
final MockFlutterDevice mockFlutterDevice = MockFlutterDevice();
|
||||
when(mockResidentRunner.isRunningDebug).thenReturn(true);
|
||||
when(mockResidentRunner.flutterDevices).thenReturn(<FlutterDevice>[mockFlutterDevice]);
|
||||
when(mockResidentRunner.listFlutterViews()).thenAnswer((Invocation invocation) async {
|
||||
return <FlutterView>[];
|
||||
});
|
||||
|
||||
await terminalHandler.processTerminalInput('l');
|
||||
|
||||
expect(testLogger.statusText, contains('Connected views:\n'));
|
||||
});
|
||||
|
||||
testUsingContext('L - debugDumpLayerTree with service protocol', () async {
|
||||
await terminalHandler.processTerminalInput('L');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user