OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'package:analyzer/dart/element/element.dart'; | 5 import 'package:analyzer/dart/element/element.dart'; |
6 import 'package:analyzer/src/generated/error.dart'; | 6 import 'package:analyzer/src/generated/error.dart'; |
7 import 'package:analyzer/src/generated/source.dart'; | 7 import 'package:analyzer/src/generated/source.dart'; |
8 import 'package:analyzer/src/summary/incremental_cache.dart'; | 8 import 'package:analyzer/src/summary/incremental_cache.dart'; |
| 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
9 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
10 | 11 |
11 import '../../generated/test_support.dart'; | 12 import '../../generated/test_support.dart'; |
12 import '../../reflective_tests.dart'; | |
13 import '../abstract_single_unit.dart'; | 13 import '../abstract_single_unit.dart'; |
14 | 14 |
15 main() { | 15 main() { |
16 groupSep = ' | '; | 16 groupSep = ' | '; |
17 runReflectiveTests(ComparePathsTest); | 17 defineReflectiveTests(ComparePathsTest); |
18 runReflectiveTests(IncrementalCacheTest); | 18 defineReflectiveTests(IncrementalCacheTest); |
19 } | 19 } |
20 | 20 |
21 @reflectiveTest | 21 @reflectiveTest |
22 class ComparePathsTest extends AbstractSingleUnitTest { | 22 class ComparePathsTest extends AbstractSingleUnitTest { |
23 void test_empty() { | 23 void test_empty() { |
24 expect(comparePaths('', ''), 0); | 24 expect(comparePaths('', ''), 0); |
25 } | 25 } |
26 | 26 |
27 void test_equal() { | 27 void test_equal() { |
28 expect(comparePaths('abc', 'abc'), 0); | 28 expect(comparePaths('abc', 'abc'), 0); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 @override | 288 @override |
289 List<int> get(String key) { | 289 List<int> get(String key) { |
290 return map[key]; | 290 return map[key]; |
291 } | 291 } |
292 | 292 |
293 @override | 293 @override |
294 void put(String key, List<int> bytes) { | 294 void put(String key, List<int> bytes) { |
295 map[key] = bytes; | 295 map[key] = bytes; |
296 } | 296 } |
297 } | 297 } |
OLD | NEW |