Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: lib/src/util/io.dart

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/util/exit_codes.dart ('k') | lib/src/util/isolate_wrapper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/io.dart
diff --git a/lib/src/util/io.dart b/lib/src/util/io.dart
index 65bb9cde6e0f822d68a63144a64079f0eb2a8405..39c336ac84ddff329fcecdc6fee2f9932b7110f5 100644
--- a/lib/src/util/io.dart
+++ b/lib/src/util/io.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library unittest.util.io;
+library test.util.io;
import 'dart:async';
import 'dart:io';
@@ -26,9 +26,9 @@ final OperatingSystem currentOS = (() {
throw new UnsupportedError('Unsupported operating system "$name".');
})();
-/// The path to the `lib` directory of the `unittest` package.
+/// The path to the `lib` directory of the `test` package.
String libDir({String packageRoot}) {
- var pathToIo = libraryPath(#unittest.util.io, packageRoot: packageRoot);
+ var pathToIo = libraryPath(#test.util.io, packageRoot: packageRoot);
return p.dirname(p.dirname(p.dirname(pathToIo)));
}
@@ -64,7 +64,7 @@ Future withTempDir(Future fn(String path)) {
return new Future.sync(() {
// TODO(nweiz): Empirically test whether sync or async functions perform
// better here when starting a bunch of isolates.
- var tempDir = Directory.systemTemp.createTempSync('unittest_');
+ var tempDir = Directory.systemTemp.createTempSync('test_');
return new Future.sync(() => fn(tempDir.path))
.whenComplete(() => tempDir.deleteSync(recursive: true));
});
« no previous file with comments | « lib/src/util/exit_codes.dart ('k') | lib/src/util/isolate_wrapper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698