| 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 test.analysis_server; | 5 library test.analysis_server; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 10 import 'package:analysis_server/src/analysis_server.dart'; | 10 import 'package:analysis_server/src/analysis_server.dart'; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 channel = new MockServerChannel(); | 137 channel = new MockServerChannel(); |
| 138 resourceProvider = new MemoryResourceProvider(); | 138 resourceProvider = new MemoryResourceProvider(); |
| 139 packageMapProvider = new MockPackageMapProvider(); | 139 packageMapProvider = new MockPackageMapProvider(); |
| 140 server = new AnalysisServer( | 140 server = new AnalysisServer( |
| 141 channel, | 141 channel, |
| 142 resourceProvider, | 142 resourceProvider, |
| 143 packageMapProvider, | 143 packageMapProvider, |
| 144 null, | 144 null, |
| 145 plugin, | 145 plugin, |
| 146 new AnalysisServerOptions(), | 146 new AnalysisServerOptions(), |
| 147 () => new MockSdk(), | 147 (_) => new MockSdk(), |
| 148 InstrumentationService.NULL_SERVICE, | 148 InstrumentationService.NULL_SERVICE, |
| 149 rethrowExceptions: true); | 149 rethrowExceptions: true); |
| 150 processRequiredPlugins(); | 150 processRequiredPlugins(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 Future test_contextDisposed() { | 153 Future test_contextDisposed() { |
| 154 resourceProvider.newFolder('/foo'); | 154 resourceProvider.newFolder('/foo'); |
| 155 resourceProvider.newFile('/foo/bar.dart', 'library lib;'); | 155 resourceProvider.newFile('/foo/bar.dart', 'library lib;'); |
| 156 server.setAnalysisRoots('0', ['/foo'], [], {}); | 156 server.setAnalysisRoots('0', ['/foo'], [], {}); |
| 157 AnalysisContext context; | 157 AnalysisContext context; |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 _MockServerOperation(this.context); | 572 _MockServerOperation(this.context); |
| 573 | 573 |
| 574 @override | 574 @override |
| 575 ServerOperationPriority get priority => ServerOperationPriority.ANALYSIS; | 575 ServerOperationPriority get priority => ServerOperationPriority.ANALYSIS; |
| 576 | 576 |
| 577 @override | 577 @override |
| 578 void perform(AnalysisServer server) { | 578 void perform(AnalysisServer server) { |
| 579 isComplete = true; | 579 isComplete = true; |
| 580 } | 580 } |
| 581 } | 581 } |
| OLD | NEW |