Migrate devicelab tests and test runners to null safety. (#85999)
* Migrate devicelab tests and test runners to null safety.
This commit is contained in:
@@ -2,8 +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 'package:file/file.dart';
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:flutter_devicelab/framework/host_agent.dart';
|
||||
@@ -12,7 +10,7 @@ import 'package:platform/platform.dart';
|
||||
import 'common.dart';
|
||||
|
||||
void main() {
|
||||
FileSystem fs;
|
||||
late FileSystem fs;
|
||||
setUp(() {
|
||||
fs = MemoryFileSystem();
|
||||
hostAgent.resetDumpDirectory();
|
||||
@@ -31,8 +29,8 @@ void main() {
|
||||
);
|
||||
final HostAgent agent = HostAgent(platform: fakePlatform, fileSystem: fs);
|
||||
|
||||
expect(agent.dumpDirectory.existsSync(), isTrue);
|
||||
expect(agent.dumpDirectory.path, environmentDir.path);
|
||||
expect(agent.dumpDirectory!.existsSync(), isTrue);
|
||||
expect(agent.dumpDirectory!.path, environmentDir.path);
|
||||
});
|
||||
|
||||
test('not set by environment', () async {
|
||||
|
||||
Reference in New Issue
Block a user