| OLD | NEW |
| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.engine_test; | 8 library engine.engine_test; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 import 'package:unittest/unittest.dart'; | 40 import 'package:unittest/unittest.dart'; |
| 41 import 'package:watcher/src/utils.dart'; | 41 import 'package:watcher/src/utils.dart'; |
| 42 | 42 |
| 43 import '../reflective_tests.dart'; | 43 import '../reflective_tests.dart'; |
| 44 import 'all_the_rest_test.dart'; | 44 import 'all_the_rest_test.dart'; |
| 45 import 'resolver_test.dart'; | 45 import 'resolver_test.dart'; |
| 46 import 'test_support.dart'; | 46 import 'test_support.dart'; |
| 47 | 47 |
| 48 main() { | 48 main() { |
| 49 groupSep = ' | '; | 49 groupSep = ' | '; |
| 50 runReflectiveTests(AnalysisCacheTest); | 50 // Tests for the classes used in both old and new analysis implementations. |
| 51 runReflectiveTests(AnalysisContextImplTest); | |
| 52 runReflectiveTests(AnalysisTaskTest); | |
| 53 runReflectiveTests(AnalysisOptionsImplTest); | |
| 54 runReflectiveTests(DartEntryTest); | |
| 55 runReflectiveTests(GenerateDartErrorsTaskTest); | |
| 56 runReflectiveTests(GenerateDartHintsTaskTest); | |
| 57 runReflectiveTests(GenerateDartLintsTaskTest); | |
| 58 runReflectiveTests(GetContentTaskTest); | |
| 59 runReflectiveTests(HtmlEntryTest); | |
| 60 runReflectiveTests(IncrementalAnalysisCacheTest); | |
| 61 runReflectiveTests(IncrementalAnalysisTaskTest); | |
| 62 runReflectiveTests(LintGeneratorTest); | |
| 63 runReflectiveTests(ParseDartTaskTest); | |
| 64 runReflectiveTests(ParseHtmlTaskTest); | |
| 65 runReflectiveTests(PartitionManagerTest); | |
| 66 runReflectiveTests(ResolveDartLibraryTaskTest); | |
| 67 runReflectiveTests(ResolveDartUnitTaskTest); | |
| 68 runReflectiveTests(ResolveHtmlTaskTest); | |
| 69 runReflectiveTests(ScanDartTaskTest); | |
| 70 runReflectiveTests(SdkCachePartitionTest); | |
| 71 runReflectiveTests(SourcesChangedEventTest); | 51 runReflectiveTests(SourcesChangedEventTest); |
| 72 runReflectiveTests(UniversalCachePartitionTest); | 52 // Tests for the classes used in the old analysis implementation. |
| 73 runReflectiveTests(WorkManagerTest); | 53 if (!AnalysisEngine.instance.useTaskModel) { |
| 54 runReflectiveTests(AnalysisCacheTest); |
| 55 runReflectiveTests(AnalysisContextImplTest); |
| 56 runReflectiveTests(AnalysisTaskTest); |
| 57 runReflectiveTests(AnalysisOptionsImplTest); |
| 58 runReflectiveTests(DartEntryTest); |
| 59 runReflectiveTests(GenerateDartErrorsTaskTest); |
| 60 runReflectiveTests(GenerateDartHintsTaskTest); |
| 61 runReflectiveTests(GenerateDartLintsTaskTest); |
| 62 runReflectiveTests(GetContentTaskTest); |
| 63 runReflectiveTests(HtmlEntryTest); |
| 64 runReflectiveTests(IncrementalAnalysisCacheTest); |
| 65 runReflectiveTests(IncrementalAnalysisTaskTest); |
| 66 runReflectiveTests(LintGeneratorTest); |
| 67 runReflectiveTests(ParseDartTaskTest); |
| 68 runReflectiveTests(ParseHtmlTaskTest); |
| 69 runReflectiveTests(PartitionManagerTest); |
| 70 runReflectiveTests(ResolveDartLibraryTaskTest); |
| 71 runReflectiveTests(ResolveDartUnitTaskTest); |
| 72 runReflectiveTests(ResolveHtmlTaskTest); |
| 73 runReflectiveTests(ScanDartTaskTest); |
| 74 runReflectiveTests(SdkCachePartitionTest); |
| 75 runReflectiveTests(UniversalCachePartitionTest); |
| 76 runReflectiveTests(WorkManagerTest); |
| 77 } |
| 74 } | 78 } |
| 75 | 79 |
| 76 @reflectiveTest | 80 @reflectiveTest |
| 77 class AnalysisCacheTest extends EngineTestCase { | 81 class AnalysisCacheTest extends EngineTestCase { |
| 78 void test_creation() { | 82 void test_creation() { |
| 79 expect(new AnalysisCache(new List<CachePartition>(0)), isNotNull); | 83 expect(new AnalysisCache(new List<CachePartition>(0)), isNotNull); |
| 80 } | 84 } |
| 81 | 85 |
| 82 void test_get() { | 86 void test_get() { |
| 83 AnalysisCache cache = new AnalysisCache(new List<CachePartition>(0)); | 87 AnalysisCache cache = new AnalysisCache(new List<CachePartition>(0)); |
| (...skipping 6518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6602 @override | 6606 @override |
| 6603 bool exists() => true; | 6607 bool exists() => true; |
| 6604 } | 6608 } |
| 6605 | 6609 |
| 6606 class _UniversalCachePartitionTest_test_setMaxCacheSize | 6610 class _UniversalCachePartitionTest_test_setMaxCacheSize |
| 6607 implements CacheRetentionPolicy { | 6611 implements CacheRetentionPolicy { |
| 6608 @override | 6612 @override |
| 6609 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 6613 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
| 6610 RetentionPriority.LOW; | 6614 RetentionPriority.LOW; |
| 6611 } | 6615 } |
| OLD | NEW |