[flutter_tools] add needsFullRestart flag on hot runner (#104562)

This commit is contained in:
Jesús S Guerrero
2022-06-03 10:18:16 -07:00
committed by GitHub
parent 3f1f0a8170
commit 889a15eb9d
7 changed files with 13 additions and 2 deletions

View File

@@ -477,6 +477,7 @@ class FakeHotRunner extends Fake implements HotRunner {
Completer<void> appStartedCompleter,
bool allowExistingDdsInstance = false,
bool enableDevTools = false,
bool needsFullRestart = true,
}) {
return onAttach(connectionInfoCompleter, appStartedCompleter, allowExistingDdsInstance, enableDevTools);
}

View File

@@ -514,7 +514,7 @@ void main() {
final int exitCode = await HotRunner(devices,
debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug),
target: 'main.dart',
).attach();
).attach(needsFullRestart: false);
expect(exitCode, 2);
}, overrides: <Type, Generator>{
HotRunnerConfig: () => TestHotRunnerConfig(),

View File

@@ -1467,6 +1467,7 @@ class TestRunner extends Fake implements ResidentRunner {
Completer<void> appStartedCompleter,
bool allowExistingDdsInstance = false,
bool enableDevTools = false,
bool needsFullRestart = true,
}) async => null;
}