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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.src.index.local_file_index; 5 library test.services.src.index.local_file_index;
6 6
7 import 'dart:io';
8
9 import 'package:analysis_services/index/index.dart'; 7 import 'package:analysis_services/index/index.dart';
10 import 'package:analysis_services/index/local_file_index.dart'; 8 import 'package:analysis_services/index/local_file_index.dart';
11 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
12 10
13 11
14 main() { 12 main() {
15 groupSep = ' | '; 13 groupSep = ' | ';
16 test('createLocalFileIndex', () { 14 test('createLocalFileIndex', () {
17 Directory indexDirectory = Directory.systemTemp.createTempSync( 15 Index index = createLocalFileIndex();
18 'AnalysisServer_index');
19 try {
20 Index index = createLocalFileIndex(indexDirectory);
21 expect(index, isNotNull); 16 expect(index, isNotNull);
22 } finally { 17 index.clear();
23 indexDirectory.delete(recursive: true);
24 }
25 }); 18 });
26 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698