Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: pkg/analysis_server/test/src/plugin/result_merger_test.dart

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/src/plugin/result_merger_test.dart
diff --git a/pkg/analysis_server/test/src/plugin/result_merger_test.dart b/pkg/analysis_server/test/src/plugin/result_merger_test.dart
index 749dc84f23c47c56417df9c94356b5e1221631f7..98a63fda6b5e469edaf7f114489ac21830e5e53f 100644
--- a/pkg/analysis_server/test/src/plugin/result_merger_test.dart
+++ b/pkg/analysis_server/test/src/plugin/result_merger_test.dart
@@ -4,7 +4,7 @@
import 'package:analysis_server/protocol/protocol_generated.dart';
import 'package:analysis_server/src/plugin/result_merger.dart';
-import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin;
+import 'package:analyzer_plugin/protocol/protocol_common.dart';
import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
@@ -26,29 +26,27 @@ class ResultMergerTest {
ResultMerger merger = new ResultMerger();
void test_mergeAnalysisErrorFixes() {
- plugin.AnalysisError createError(int offset) {
- plugin.AnalysisErrorSeverity severity =
- plugin.AnalysisErrorSeverity.ERROR;
- plugin.AnalysisErrorType type = plugin.AnalysisErrorType.HINT;
- plugin.Location location =
- new plugin.Location('test.dart', offset, 2, 3, 4);
- return new plugin.AnalysisError(severity, type, location, '', '');
+ AnalysisError createError(int offset) {
+ AnalysisErrorSeverity severity = AnalysisErrorSeverity.ERROR;
+ AnalysisErrorType type = AnalysisErrorType.HINT;
+ Location location = new Location('test.dart', offset, 2, 3, 4);
+ return new AnalysisError(severity, type, location, '', '');
}
- plugin.AnalysisError error1 = createError(10);
- plugin.AnalysisError error2 = createError(20);
- plugin.AnalysisError error3 = createError(30);
- plugin.AnalysisError error4 = createError(40);
+ AnalysisError error1 = createError(10);
+ AnalysisError error2 = createError(20);
+ AnalysisError error3 = createError(30);
+ AnalysisError error4 = createError(40);
plugin.PrioritizedSourceChange change1 =
- new plugin.PrioritizedSourceChange(1, new plugin.SourceChange('a'));
+ new plugin.PrioritizedSourceChange(1, new SourceChange('a'));
plugin.PrioritizedSourceChange change2 =
- new plugin.PrioritizedSourceChange(2, new plugin.SourceChange('b'));
+ new plugin.PrioritizedSourceChange(2, new SourceChange('b'));
plugin.PrioritizedSourceChange change3 =
- new plugin.PrioritizedSourceChange(3, new plugin.SourceChange('c'));
+ new plugin.PrioritizedSourceChange(3, new SourceChange('c'));
plugin.PrioritizedSourceChange change4 =
- new plugin.PrioritizedSourceChange(4, new plugin.SourceChange('d'));
+ new plugin.PrioritizedSourceChange(4, new SourceChange('d'));
plugin.PrioritizedSourceChange change5 =
- new plugin.PrioritizedSourceChange(5, new plugin.SourceChange('e'));
+ new plugin.PrioritizedSourceChange(5, new SourceChange('e'));
plugin.AnalysisErrorFixes fix1 =
new plugin.AnalysisErrorFixes(error1, fixes: [change1]);
plugin.AnalysisErrorFixes fix2 =
@@ -348,13 +346,13 @@ class ResultMergerTest {
void test_mergePrioritizedSourceChanges() {
plugin.PrioritizedSourceChange kind1 =
- new plugin.PrioritizedSourceChange(1, new plugin.SourceChange(''));
+ new plugin.PrioritizedSourceChange(1, new SourceChange(''));
plugin.PrioritizedSourceChange kind2 =
- new plugin.PrioritizedSourceChange(1, new plugin.SourceChange(''));
+ new plugin.PrioritizedSourceChange(1, new SourceChange(''));
plugin.PrioritizedSourceChange kind3 =
- new plugin.PrioritizedSourceChange(1, new plugin.SourceChange(''));
+ new plugin.PrioritizedSourceChange(1, new SourceChange(''));
plugin.PrioritizedSourceChange kind4 =
- new plugin.PrioritizedSourceChange(1, new plugin.SourceChange(''));
+ new plugin.PrioritizedSourceChange(1, new SourceChange(''));
void runTest() {
expect(
« no previous file with comments | « pkg/analysis_server/test/src/plugin/result_converter_test.dart ('k') | pkg/analysis_server/test/stress/replay/replay.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698