| 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 library analyzer.test.driver; | 5 library analyzer.test.driver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 List<AnalysisResult> allResults = []; | 66 List<AnalysisResult> allResults = []; |
| 67 | 67 |
| 68 AnalysisDriver newDriver() { | 68 AnalysisDriver newDriver() { |
| 69 AnalysisDriver driver = new AnalysisDriver( | 69 AnalysisDriver driver = new AnalysisDriver( |
| 70 scheduler, | 70 scheduler, |
| 71 logger, | 71 logger, |
| 72 provider, | 72 provider, |
| 73 byteStore, | 73 byteStore, |
| 74 contentOverlay, | 74 contentOverlay, |
| 75 'test', |
| 75 new SourceFactory( | 76 new SourceFactory( |
| 76 [new DartUriResolver(sdk), new ResourceUriResolver(provider)], | 77 [new DartUriResolver(sdk), new ResourceUriResolver(provider)], |
| 77 null, | 78 null, |
| 78 provider), | 79 provider), |
| 79 new AnalysisOptionsImpl()..strongMode = true); | 80 new AnalysisOptionsImpl()..strongMode = true); |
| 80 driver.results.forEach(allResults.add); | 81 driver.results.forEach(allResults.add); |
| 81 return driver; | 82 return driver; |
| 82 } | 83 } |
| 83 | 84 |
| 84 void setUp() { | 85 void setUp() { |
| (...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 String _p(String path) => provider.convertPath(path); | 1798 String _p(String path) => provider.convertPath(path); |
| 1798 | 1799 |
| 1799 Future<Null> _waitForIdle() async { | 1800 Future<Null> _waitForIdle() async { |
| 1800 await idleStatusMonitor.signal; | 1801 await idleStatusMonitor.signal; |
| 1801 } | 1802 } |
| 1802 | 1803 |
| 1803 static String _md5(String content) { | 1804 static String _md5(String content) { |
| 1804 return hex.encode(md5.convert(UTF8.encode(content)).bytes); | 1805 return hex.encode(md5.convert(UTF8.encode(content)).bytes); |
| 1805 } | 1806 } |
| 1806 } | 1807 } |
| OLD | NEW |