| 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/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 group('ExecutionDomainHandler', () { | 32 group('ExecutionDomainHandler', () { |
| 33 AnalysisServer server; | 33 AnalysisServer server; |
| 34 ExecutionDomainHandler handler; | 34 ExecutionDomainHandler handler; |
| 35 | 35 |
| 36 setUp(() { | 36 setUp(() { |
| 37 server = new AnalysisServer( | 37 server = new AnalysisServer( |
| 38 new MockServerChannel(), | 38 new MockServerChannel(), |
| 39 PhysicalResourceProvider.INSTANCE, | 39 PhysicalResourceProvider.INSTANCE, |
| 40 new MockPackageMapProvider(), | 40 new MockPackageMapProvider(), |
| 41 null, | 41 null, |
| 42 new AnalysisServerOptions(), |
| 42 new MockSdk()); | 43 new MockSdk()); |
| 43 handler = new ExecutionDomainHandler(server); | 44 handler = new ExecutionDomainHandler(server); |
| 44 }); | 45 }); |
| 45 | 46 |
| 46 group('createContext/deleteContext', () { | 47 group('createContext/deleteContext', () { |
| 47 test('create/delete multiple contexts', () { | 48 test('create/delete multiple contexts', () { |
| 48 Request request = | 49 Request request = |
| 49 new ExecutionCreateContextParams('/a/b.dart').toRequest('0'); | 50 new ExecutionCreateContextParams('/a/b.dart').toRequest('0'); |
| 50 Response response = handler.handleRequest(request); | 51 Response response = handler.handleRequest(request); |
| 51 expect(response, isResponseSuccess('0')); | 52 expect(response, isResponseSuccess('0')); |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 * A [Source] that knows it's [fullName]. | 269 * A [Source] that knows it's [fullName]. |
| 269 */ | 270 */ |
| 270 class TestSource implements Source { | 271 class TestSource implements Source { |
| 271 String fullName; | 272 String fullName; |
| 272 | 273 |
| 273 TestSource(this.fullName); | 274 TestSource(this.fullName); |
| 274 | 275 |
| 275 @override | 276 @override |
| 276 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 277 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 277 } | 278 } |
| OLD | NEW |