| 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'; |
| 11 import 'package:analysis_server/src/constants.dart'; | 11 import 'package:analysis_server/src/constants.dart'; |
| 12 import 'package:analysis_server/src/context_manager.dart'; | 12 import 'package:analysis_server/src/context_manager.dart'; |
| 13 import 'package:analysis_server/src/domain_execution.dart'; | 13 import 'package:analysis_server/src/domain_execution.dart'; |
| 14 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 14 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
| 15 import 'package:analyzer/file_system/file_system.dart'; | 15 import 'package:analyzer/file_system/file_system.dart'; |
| 16 import 'package:analyzer/file_system/memory_file_system.dart'; | 16 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 17 import 'package:analyzer/instrumentation/instrumentation.dart'; | 17 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| 18 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
| 19 import 'package:analyzer/src/generated/sdk.dart'; | 19 import 'package:analyzer/src/generated/sdk.dart'; |
| 20 import 'package:analyzer/src/generated/source.dart'; | 20 import 'package:analyzer/src/generated/source.dart'; |
| 21 import 'package:analyzer/src/generated/source_io.dart'; | 21 import 'package:analyzer/src/generated/source_io.dart'; |
| 22 import 'package:plugin/manager.dart'; | 22 import 'package:plugin/manager.dart'; |
| 23 import 'package:test/test.dart'; |
| 23 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 24 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 24 import 'package:typed_mock/typed_mock.dart'; | 25 import 'package:typed_mock/typed_mock.dart'; |
| 25 import 'package:unittest/unittest.dart'; | |
| 26 | 26 |
| 27 import 'analysis_abstract.dart'; | 27 import 'analysis_abstract.dart'; |
| 28 import 'mock_sdk.dart'; | 28 import 'mock_sdk.dart'; |
| 29 import 'mocks.dart'; | 29 import 'mocks.dart'; |
| 30 import 'operation/operation_queue_test.dart'; | 30 import 'operation/operation_queue_test.dart'; |
| 31 import 'utils.dart'; | 31 import 'utils.dart'; |
| 32 | 32 |
| 33 main() { | 33 main() { |
| 34 initializeTestEnvironment(); | 34 initializeTestEnvironment(); |
| 35 defineReflectiveTests(ExecutionDomainTest); | 35 defineReflectiveSuite(() { |
| 36 defineReflectiveTests(ExecutionDomainTest); |
| 37 }); |
| 36 group('ExecutionDomainHandler', () { | 38 group('ExecutionDomainHandler', () { |
| 37 MemoryResourceProvider provider = new MemoryResourceProvider(); | 39 MemoryResourceProvider provider = new MemoryResourceProvider(); |
| 38 AnalysisServer server; | 40 AnalysisServer server; |
| 39 ExecutionDomainHandler handler; | 41 ExecutionDomainHandler handler; |
| 40 | 42 |
| 41 setUp(() { | 43 setUp(() { |
| 42 ExtensionManager manager = new ExtensionManager(); | 44 ExtensionManager manager = new ExtensionManager(); |
| 43 ServerPlugin serverPlugin = new ServerPlugin(); | 45 ServerPlugin serverPlugin = new ServerPlugin(); |
| 44 manager.processPlugins([serverPlugin]); | 46 manager.processPlugins([serverPlugin]); |
| 45 server = new AnalysisServer( | 47 server = new AnalysisServer( |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 * A [Source] that knows it's [fullName]. | 351 * A [Source] that knows it's [fullName]. |
| 350 */ | 352 */ |
| 351 class TestSource implements Source { | 353 class TestSource implements Source { |
| 352 String fullName; | 354 String fullName; |
| 353 | 355 |
| 354 TestSource(this.fullName); | 356 TestSource(this.fullName); |
| 355 | 357 |
| 356 @override | 358 @override |
| 357 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 359 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 358 } | 360 } |
| OLD | NEW |