| 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.domain.execution; | 5 library test.domain.execution; |
| 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 27 matching lines...) Expand all Loading... |
| 38 AnalysisServer server; | 38 AnalysisServer server; |
| 39 ExecutionDomainHandler handler; | 39 ExecutionDomainHandler handler; |
| 40 | 40 |
| 41 setUp(() { | 41 setUp(() { |
| 42 ExtensionManager manager = new ExtensionManager(); | 42 ExtensionManager manager = new ExtensionManager(); |
| 43 ServerPlugin serverPlugin = new ServerPlugin(); | 43 ServerPlugin serverPlugin = new ServerPlugin(); |
| 44 manager.processPlugins([serverPlugin]); | 44 manager.processPlugins([serverPlugin]); |
| 45 server = new AnalysisServer( | 45 server = new AnalysisServer( |
| 46 new MockServerChannel(), | 46 new MockServerChannel(), |
| 47 provider, | 47 provider, |
| 48 new MockPackageMapProvider(), |
| 48 null, | 49 null, |
| 49 serverPlugin, | 50 serverPlugin, |
| 50 new AnalysisServerOptions(), | 51 new AnalysisServerOptions(), |
| 51 new DartSdkManager('', false, (_) => new MockSdk()), | 52 new DartSdkManager('', false, (_) => new MockSdk()), |
| 52 InstrumentationService.NULL_SERVICE); | 53 InstrumentationService.NULL_SERVICE); |
| 53 handler = new ExecutionDomainHandler(server); | 54 handler = new ExecutionDomainHandler(server); |
| 54 }); | 55 }); |
| 55 | 56 |
| 56 group('createContext/deleteContext', () { | 57 group('createContext/deleteContext', () { |
| 57 test('create/delete multiple contexts', () { | 58 test('create/delete multiple contexts', () { |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 * A [Source] that knows it's [fullName]. | 349 * A [Source] that knows it's [fullName]. |
| 349 */ | 350 */ |
| 350 class TestSource implements Source { | 351 class TestSource implements Source { |
| 351 String fullName; | 352 String fullName; |
| 352 | 353 |
| 353 TestSource(this.fullName); | 354 TestSource(this.fullName); |
| 354 | 355 |
| 355 @override | 356 @override |
| 356 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 357 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 357 } | 358 } |
| OLD | NEW |