| 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 library engine.engine_test; | 5 library engine.engine_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/file_system/memory_file_system.dart'; | 10 import 'package:analyzer/file_system/memory_file_system.dart'; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 expect(_hasAnalysisErrorWithErrorSeverity(errors), isTrue, | 221 expect(_hasAnalysisErrorWithErrorSeverity(errors), isTrue, |
| 222 reason: "htmlSource has an error"); | 222 reason: "htmlSource has an error"); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void fail_recordLibraryElements() { | 225 void fail_recordLibraryElements() { |
| 226 fail("Implement this"); | 226 fail("Implement this"); |
| 227 } | 227 } |
| 228 | 228 |
| 229 @override | 229 @override |
| 230 void setUp() { | 230 void setUp() { |
| 231 super.setUp(); |
| 231 _context = new AnalysisContextImpl(); | 232 _context = new AnalysisContextImpl(); |
| 232 _sourceFactory = new SourceFactory([ | 233 _sourceFactory = new SourceFactory([ |
| 233 new DartUriResolver(DirectoryBasedDartSdk.defaultSdk), | 234 new DartUriResolver(DirectoryBasedDartSdk.defaultSdk), |
| 234 new FileUriResolver() | 235 new FileUriResolver() |
| 235 ]); | 236 ]); |
| 236 _context.sourceFactory = _sourceFactory; | 237 _context.sourceFactory = _sourceFactory; |
| 237 AnalysisOptionsImpl options = | 238 AnalysisOptionsImpl options = |
| 238 new AnalysisOptionsImpl.from(_context.analysisOptions); | 239 new AnalysisOptionsImpl.from(_context.analysisOptions); |
| 239 options.cacheSize = 256; | 240 options.cacheSize = 256; |
| 240 _context.analysisOptions = options; | 241 _context.analysisOptions = options; |
| (...skipping 6817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7058 @override | 7059 @override |
| 7059 bool exists() => true; | 7060 bool exists() => true; |
| 7060 } | 7061 } |
| 7061 | 7062 |
| 7062 class _UniversalCachePartitionTest_test_setMaxCacheSize | 7063 class _UniversalCachePartitionTest_test_setMaxCacheSize |
| 7063 implements CacheRetentionPolicy { | 7064 implements CacheRetentionPolicy { |
| 7064 @override | 7065 @override |
| 7065 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 7066 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
| 7066 RetentionPriority.LOW; | 7067 RetentionPriority.LOW; |
| 7067 } | 7068 } |
| OLD | NEW |