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.analysis.reanalyze; | |
6 | |
7 import 'package:analysis_server/protocol/protocol.dart'; | 5 import 'package:analysis_server/protocol/protocol.dart'; |
8 import 'package:analysis_server/protocol/protocol_generated.dart'; | 6 import 'package:analysis_server/protocol/protocol_generated.dart'; |
9 import 'package:analysis_server/src/constants.dart'; | 7 import 'package:analysis_server/src/constants.dart'; |
10 import 'package:analyzer/src/generated/engine.dart'; | 8 import 'package:analyzer/src/generated/engine.dart'; |
| 9 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
11 import 'package:test/test.dart'; | 10 import 'package:test/test.dart'; |
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 11 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
13 | 12 |
14 import '../analysis_abstract.dart'; | 13 import '../analysis_abstract.dart'; |
15 | 14 |
16 main() { | 15 main() { |
17 defineReflectiveSuite(() { | 16 defineReflectiveSuite(() { |
18 defineReflectiveTests(ReanalyzeTest); | 17 defineReflectiveTests(ReanalyzeTest); |
19 }); | 18 }); |
20 } | 19 } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 75 |
77 test_sentToPlugins() async { | 76 test_sentToPlugins() async { |
78 createProject(); | 77 createProject(); |
79 await waitForTasksFinished(); | 78 await waitForTasksFinished(); |
80 Request request = new Request("0", ANALYSIS_REANALYZE); | 79 Request request = new Request("0", ANALYSIS_REANALYZE); |
81 handleSuccessfulRequest(request); | 80 handleSuccessfulRequest(request); |
82 // verify | 81 // verify |
83 expect(pluginManager.broadcastedRequest, isNotNull); | 82 expect(pluginManager.broadcastedRequest, isNotNull); |
84 } | 83 } |
85 } | 84 } |
OLD | NEW |