[flutter_tools] add needsFullRestart flag on hot runner (#104562)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -1467,6 +1467,7 @@ class TestRunner extends Fake implements ResidentRunner {
|
||||
Completer<void> appStartedCompleter,
|
||||
bool allowExistingDdsInstance = false,
|
||||
bool enableDevTools = false,
|
||||
bool needsFullRestart = true,
|
||||
}) async => null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user