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

Unified Diff: samples/sample_extension/test/sample_extension_test.dart

Issue 25666015: Fix remaining uses of Directory.systemTemp outside test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | sdk/lib/core/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/sample_extension/test/sample_extension_test.dart
diff --git a/samples/sample_extension/test/sample_extension_test.dart b/samples/sample_extension/test/sample_extension_test.dart
index c5f99656a867a29a2b1b8a319233f61fce5efe24..aa3c620407e288e8256896054ee43711045082e7 100644
--- a/samples/sample_extension/test/sample_extension_test.dart
+++ b/samples/sample_extension/test/sample_extension_test.dart
@@ -41,7 +41,8 @@ String getNativeLibraryPath(String buildDirectory) {
void main() {
String scriptDirectory = dirname(Platform.script);
String buildDirectory = dirname(Platform.executable);
- Directory tempDirectory = new Directory('').createTempSync();
+ Directory tempDirectory =
+ Directory.systemTemp.createTempSync('sample_extension_');
String testDirectory = tempDirectory.path;
String sourceDirectory = join(scriptDirectory, '..');
« no previous file with comments | « no previous file | sdk/lib/core/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698