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

Unified Diff: pkg/analysis_services/test/index/local_file_index_test.dart

Issue 426773002: Issue 20240. Use a FileManager that manages its own temporary directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
Index: pkg/analysis_services/test/index/local_file_index_test.dart
diff --git a/pkg/analysis_services/test/index/local_file_index_test.dart b/pkg/analysis_services/test/index/local_file_index_test.dart
index 8ac5fefcfe6512942769b98f4ce95e0328518bf9..cc0dbf45bb63c197dab05d9336fccb55e29edb17 100644
--- a/pkg/analysis_services/test/index/local_file_index_test.dart
+++ b/pkg/analysis_services/test/index/local_file_index_test.dart
@@ -4,8 +4,6 @@
library test.services.src.index.local_file_index;
-import 'dart:io';
-
import 'package:analysis_services/index/index.dart';
import 'package:analysis_services/index/local_file_index.dart';
import 'package:unittest/unittest.dart';
@@ -14,13 +12,8 @@ import 'package:unittest/unittest.dart';
main() {
groupSep = ' | ';
test('createLocalFileIndex', () {
- Directory indexDirectory = Directory.systemTemp.createTempSync(
- 'AnalysisServer_index');
- try {
- Index index = createLocalFileIndex(indexDirectory);
+ Index index = createLocalFileIndex();
expect(index, isNotNull);
- } finally {
- indexDirectory.delete(recursive: true);
- }
+ index.clear();
});
}

Powered by Google App Engine
This is Rietveld 408576698