prefer const contructors in packages/flutter_driver (#8056)
This commit is contained in:
committed by
Adam Barth
parent
b246c5e7e9
commit
f16dea290b
@@ -11,7 +11,7 @@ import 'package:file/memory.dart';
|
||||
/// The file system implementation used by this library.
|
||||
///
|
||||
/// See [useMemoryFileSystemForTesting] and [restoreFileSystem].
|
||||
FileSystem fs = new LocalFileSystem();
|
||||
FileSystem fs = const LocalFileSystem();
|
||||
|
||||
/// Overrides the file system so it can be tested without hitting the hard
|
||||
/// drive.
|
||||
@@ -21,7 +21,7 @@ void useMemoryFileSystemForTesting() {
|
||||
|
||||
/// Restores the file system to the default local file system implementation.
|
||||
void restoreFileSystem() {
|
||||
fs = new LocalFileSystem();
|
||||
fs = const LocalFileSystem();
|
||||
}
|
||||
|
||||
/// Flutter Driver test ouputs directory.
|
||||
|
||||
@@ -157,7 +157,7 @@ class FlutterDriver {
|
||||
isolate.pauseEvent is! VMPauseExceptionEvent &&
|
||||
isolate.pauseEvent is! VMPauseInterruptedEvent &&
|
||||
isolate.pauseEvent is! VMResumeEvent) {
|
||||
await new Future<Null>.delayed(new Duration(milliseconds: 300));
|
||||
await new Future<Null>.delayed(const Duration(milliseconds: 300));
|
||||
isolate = await vm.isolates.first.loadRunnable();
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import 'package:path/path.dart' as path;
|
||||
import 'common.dart';
|
||||
import 'timeline.dart';
|
||||
|
||||
final JsonEncoder _prettyEncoder = new JsonEncoder.withIndent(' ');
|
||||
final JsonEncoder _prettyEncoder = const JsonEncoder.withIndent(' ');
|
||||
|
||||
/// The maximum amount of time considered safe to spend for a frame's build
|
||||
/// phase. Anything past that is in the danger of missing the frame as 60FPS.
|
||||
|
||||
Reference in New Issue
Block a user