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

Side by Side Diff: pkg/analysis_server/test/domain_analysis_test.dart

Issue 2357553003: Fix newly introduced errors and warnings (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
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.analysis; 5 library test.domain.analysis;
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';
13 import 'package:analysis_server/src/domain_analysis.dart'; 12 import 'package:analysis_server/src/domain_analysis.dart';
14 import 'package:analysis_server/src/plugin/server_plugin.dart'; 13 import 'package:analysis_server/src/plugin/server_plugin.dart';
15 import 'package:analyzer/file_system/file_system.dart';
16 import 'package:analyzer/file_system/memory_file_system.dart'; 14 import 'package:analyzer/file_system/memory_file_system.dart';
17 import 'package:analyzer/instrumentation/instrumentation.dart'; 15 import 'package:analyzer/instrumentation/instrumentation.dart';
18 import 'package:analyzer/src/generated/sdk.dart'; 16 import 'package:analyzer/src/generated/sdk.dart';
19 import 'package:path/path.dart';
20 import 'package:plugin/manager.dart'; 17 import 'package:plugin/manager.dart';
21 import 'package:test_reflective_loader/test_reflective_loader.dart'; 18 import 'package:test_reflective_loader/test_reflective_loader.dart';
22 import 'package:unittest/unittest.dart'; 19 import 'package:unittest/unittest.dart';
23 20
24 import 'analysis_abstract.dart'; 21 import 'analysis_abstract.dart';
25 import 'mock_sdk.dart'; 22 import 'mock_sdk.dart';
26 import 'mocks.dart'; 23 import 'mocks.dart';
27 import 'utils.dart'; 24 import 'utils.dart';
28 25
29 main() { 26 main() {
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 test_beforeAnalysis() async { 774 test_beforeAnalysis() async {
778 addTestFile('int V = 42;'); 775 addTestFile('int V = 42;');
779 createProject(); 776 createProject();
780 // subscribe 777 // subscribe
781 addAnalysisSubscription(AnalysisService.HIGHLIGHTS, testFile); 778 addAnalysisSubscription(AnalysisService.HIGHLIGHTS, testFile);
782 // wait for analysis 779 // wait for analysis
783 await waitForTasksFinished(); 780 await waitForTasksFinished();
784 expect(filesHighlights[testFile], isNotEmpty); 781 expect(filesHighlights[testFile], isNotEmpty);
785 } 782 }
786 } 783 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698