Migrate localizations and generate_synthetic_packages to null safety (#83310)
This commit is contained in:
@@ -2,9 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart = 2.8
|
||||
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:flutter_tools/src/artifacts.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/build_system/build_system.dart';
|
||||
@@ -19,7 +18,7 @@ void main() {
|
||||
final FileSystem fileSystem = MemoryFileSystem.test();
|
||||
final Environment environment = Environment.test(
|
||||
fileSystem.currentDirectory,
|
||||
artifacts: null,
|
||||
artifacts: Artifacts.test(),
|
||||
fileSystem: fileSystem,
|
||||
logger: BufferLogger.test(),
|
||||
processManager: FakeProcessManager.any(),
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart = 2.8
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
@@ -45,7 +44,7 @@ void main() {
|
||||
);
|
||||
final Completer<void> completer = Completer<void>();
|
||||
final BuildResult exception = BuildResult(success: false, exceptions: <String, ExceptionMeasurement>{
|
||||
'hello': ExceptionMeasurement('hello', const FormatException('illegal character in input string'), null),
|
||||
'hello': ExceptionMeasurement('hello', const FormatException('illegal character in input string'), StackTrace.current),
|
||||
});
|
||||
final TestBuildSystem buildSystem = TestBuildSystem.all(exception, (Target target, Environment environment) {
|
||||
expect(target, const GenerateLocalizationsTarget());
|
||||
@@ -94,7 +93,7 @@ void main() {
|
||||
);
|
||||
final Completer<void> completer = Completer<void>();
|
||||
final BuildResult exception = BuildResult(success: false, exceptions: <String, ExceptionMeasurement>{
|
||||
'hello': ExceptionMeasurement('hello', const FormatException('illegal character in input string'), null),
|
||||
'hello': ExceptionMeasurement('hello', const FormatException('illegal character in input string'), StackTrace.current),
|
||||
});
|
||||
final TestBuildSystem buildSystem = TestBuildSystem.all(exception, (Target target, Environment environment) {
|
||||
expect(target, const GenerateLocalizationsTarget());
|
||||
@@ -141,7 +140,7 @@ void main() {
|
||||
);
|
||||
final Completer<void> completer = Completer<void>();
|
||||
final BuildResult exception = BuildResult(success: false, exceptions: <String, ExceptionMeasurement>{
|
||||
'hello': ExceptionMeasurement('hello', const FormatException('illegal character in input string'), null),
|
||||
'hello': ExceptionMeasurement('hello', const FormatException('illegal character in input string'), StackTrace.current),
|
||||
});
|
||||
final TestBuildSystem buildSystem = TestBuildSystem.all(exception, (Target target, Environment environment) {
|
||||
expect(target, const GenerateLocalizationsTarget());
|
||||
|
||||
Reference in New Issue
Block a user