Download flutter/packages/flutter_driver/lib/src/driver/common.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_driver/lib/src/driver/common.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/flutter_driver/lib/src/driver/common.dart
-
curl -L -o common.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_driver/lib/src/driver/common.dart
1.07 kB
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'dart:io' show Platform; | |
| import 'package:file/file.dart'; | |
| import 'package:file/local.dart'; | |
| import 'package:file/memory.dart'; | |
| /// The file system implementation used by this library. | |
| /// | |
| /// See [useMemoryFileSystemForTesting] and [restoreFileSystem]. | |
| FileSystem fs = const LocalFileSystem(); | |
| /// Overrides the file system so it can be tested without hitting the hard | |
| /// drive. | |
| void useMemoryFileSystemForTesting() { | |
| fs = MemoryFileSystem(); | |
| } | |
| /// Restores the file system to the default local file system implementation. | |
| void restoreFileSystem() { | |
| fs = const LocalFileSystem(); | |
| } | |
| /// Flutter Driver test output directory. | |
| /// | |
| /// Tests should write any output files to this directory. Defaults to the path | |
| /// set in the FLUTTER_TEST_OUTPUTS_DIR environment variable, or `build` if | |
| /// unset. | |
| String get testOutputsDirectory => Platform.environment['FLUTTER_TEST_OUTPUTS_DIR'] ?? 'build'; | |