| 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 import 'package:analysis_server/protocol/protocol.dart'; | 5 import 'package:analysis_server/protocol/protocol.dart'; |
| 6 import 'package:analysis_server/protocol/protocol_generated.dart'; | 6 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| 7 import 'package:analysis_server/src/analysis_server.dart'; | 7 import 'package:analysis_server/src/analysis_server.dart'; |
| 8 import 'package:analysis_server/src/domain_execution.dart'; | 8 import 'package:analysis_server/src/domain_execution.dart'; |
| 9 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 9 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
| 10 import 'package:analyzer/file_system/memory_file_system.dart'; | 10 import 'package:analyzer/file_system/memory_file_system.dart'; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 setUp(() { | 31 setUp(() { |
| 32 ExtensionManager manager = new ExtensionManager(); | 32 ExtensionManager manager = new ExtensionManager(); |
| 33 ServerPlugin serverPlugin = new ServerPlugin(); | 33 ServerPlugin serverPlugin = new ServerPlugin(); |
| 34 manager.processPlugins([serverPlugin]); | 34 manager.processPlugins([serverPlugin]); |
| 35 server = new AnalysisServer( | 35 server = new AnalysisServer( |
| 36 new MockServerChannel(), | 36 new MockServerChannel(), |
| 37 provider, | 37 provider, |
| 38 new MockPackageMapProvider(), | 38 new MockPackageMapProvider(), |
| 39 serverPlugin, | 39 serverPlugin, |
| 40 new AnalysisServerOptions(), | 40 new AnalysisServerOptions()..addMocks(), |
| 41 new DartSdkManager('', false), | 41 new DartSdkManager('', false), |
| 42 InstrumentationService.NULL_SERVICE); | 42 InstrumentationService.NULL_SERVICE); |
| 43 handler = new ExecutionDomainHandler(server); | 43 handler = new ExecutionDomainHandler(server); |
| 44 }); | 44 }); |
| 45 | 45 |
| 46 group('createContext/deleteContext', () { | 46 group('createContext/deleteContext', () { |
| 47 test('create/delete multiple contexts', () { | 47 test('create/delete multiple contexts', () { |
| 48 Request request = | 48 Request request = |
| 49 new ExecutionCreateContextParams('/a/b.dart').toRequest('0'); | 49 new ExecutionCreateContextParams('/a/b.dart').toRequest('0'); |
| 50 Response response = handler.handleRequest(request); | 50 Response response = handler.handleRequest(request); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 * A [Source] that knows it's [fullName]. | 240 * A [Source] that knows it's [fullName]. |
| 241 */ | 241 */ |
| 242 class TestSource implements Source { | 242 class TestSource implements Source { |
| 243 String fullName; | 243 String fullName; |
| 244 | 244 |
| 245 TestSource(this.fullName); | 245 TestSource(this.fullName); |
| 246 | 246 |
| 247 @override | 247 @override |
| 248 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 248 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 249 } | 249 } |
| OLD | NEW |