| 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.completion; | 5 library test.domain.completion; |
| 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/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
| 11 import 'package:analysis_server/src/domain_completion.dart'; | 11 import 'package:analysis_server/src/domain_completion.dart'; |
| 12 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 12 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 13 import 'package:analysis_server/src/services/index/index.dart'; | 13 import 'package:analysis_server/src/services/index/index.dart'; |
| 14 import 'package:unittest/unittest.dart'; | 14 import 'package:test/test.dart'; |
| 15 | 15 |
| 16 import 'analysis_abstract.dart'; | 16 import 'analysis_abstract.dart'; |
| 17 import 'mocks.dart'; | 17 import 'mocks.dart'; |
| 18 | 18 |
| 19 class AbstractCompletionDomainTest extends AbstractAnalysisTest { | 19 class AbstractCompletionDomainTest extends AbstractAnalysisTest { |
| 20 String completionId; | 20 String completionId; |
| 21 int completionOffset; | 21 int completionOffset; |
| 22 int replacementOffset; | 22 int replacementOffset; |
| 23 int replacementLength; | 23 int replacementLength; |
| 24 List<CompletionSuggestion> suggestions = []; | 24 List<CompletionSuggestion> suggestions = []; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 @override | 118 @override |
| 119 void setUp() { | 119 void setUp() { |
| 120 super.setUp(); | 120 super.setUp(); |
| 121 createProject(); | 121 createProject(); |
| 122 handler = new CompletionDomainHandler(server); | 122 handler = new CompletionDomainHandler(server); |
| 123 } | 123 } |
| 124 } | 124 } |
| OLD | NEW |