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

Side by Side Diff: pkg/analyzer/test/index/store/separate_file_manager_test.dart

Issue 376693002: Extract testing utilities into a separate package. (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 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.engine.src.index.store.separate_file_mananer; 5 library test.engine.src.index.store.separate_file_mananer;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analysis_testing/reflective_tests.dart';
10 import 'package:analyzer/src/index/store/separate_file_manager.dart';
9 import 'package:path/path.dart'; 11 import 'package:path/path.dart';
10 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
11 13
12 import '../../reflective_tests.dart';
13 import 'package:analyzer/src/index/store/separate_file_manager.dart';
14
15 14
16 main() { 15 main() {
17 groupSep = ' | '; 16 groupSep = ' | ';
18 group('SeparateFileManager', () { 17 group('SeparateFileManager', () {
19 runReflectiveTests(_SeparateFileManagerTest); 18 runReflectiveTests(_SeparateFileManagerTest);
20 }); 19 });
21 } 20 }
22 21
23 22
24 @ReflectiveTestCase() 23 @ReflectiveTestCase()
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 expect(bytes, isNull); 67 expect(bytes, isNull);
69 }); 68 });
70 }); 69 });
71 }); 70 });
72 } 71 }
73 72
74 bool _existsSync(String name) { 73 bool _existsSync(String name) {
75 return new File(join(tempDir.path, name)).existsSync(); 74 return new File(join(tempDir.path, name)).existsSync();
76 } 75 }
77 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698