Extract KernelCompiler class (#16937)
Wraps the compile function in a class injected via the global context, which makes it easier to mock in unit tests -- specifically tests for AOT snapshotting, which already require pretty significant amounts of mock inputs.
Showing
- packages/flutter_tools/lib/src/bundle.dart 1 addition, 1 deletionpackages/flutter_tools/lib/src/bundle.dart
- packages/flutter_tools/lib/src/commands/build_aot.dart 1 addition, 1 deletionpackages/flutter_tools/lib/src/commands/build_aot.dart
- packages/flutter_tools/lib/src/compile.dart 79 additions, 72 deletionspackages/flutter_tools/lib/src/compile.dart
- packages/flutter_tools/lib/src/context_runner.dart 2 additions, 0 deletionspackages/flutter_tools/lib/src/context_runner.dart
- packages/flutter_tools/test/compile_test.dart 3 additions, 3 deletionspackages/flutter_tools/test/compile_test.dart
Loading
Please register or sign in to comment