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

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

Issue 2402483002: Remove 'initializeTestEnvironment' from 'analysis_server'. (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/domain_analysis.dart'; 12 import 'package:analysis_server/src/domain_analysis.dart';
13 import 'package:analysis_server/src/plugin/server_plugin.dart'; 13 import 'package:analysis_server/src/plugin/server_plugin.dart';
14 import 'package:analyzer/file_system/memory_file_system.dart'; 14 import 'package:analyzer/file_system/memory_file_system.dart';
15 import 'package:analyzer/instrumentation/instrumentation.dart'; 15 import 'package:analyzer/instrumentation/instrumentation.dart';
16 import 'package:analyzer/src/generated/sdk.dart'; 16 import 'package:analyzer/src/generated/sdk.dart';
17 import 'package:plugin/manager.dart'; 17 import 'package:plugin/manager.dart';
18 import 'package:test/test.dart'; 18 import 'package:test/test.dart';
19 import 'package:test_reflective_loader/test_reflective_loader.dart'; 19 import 'package:test_reflective_loader/test_reflective_loader.dart';
20 20
21 import 'analysis_abstract.dart'; 21 import 'analysis_abstract.dart';
22 import 'mock_sdk.dart'; 22 import 'mock_sdk.dart';
23 import 'mocks.dart'; 23 import 'mocks.dart';
24 import 'utils.dart';
25 24
26 main() { 25 main() {
27 initializeTestEnvironment();
28 26
29 defineReflectiveSuite(() { 27 defineReflectiveSuite(() {
30 defineReflectiveTests(AnalysisDomainTest); 28 defineReflectiveTests(AnalysisDomainTest);
31 defineReflectiveTests(SetSubscriptionsTest); 29 defineReflectiveTests(SetSubscriptionsTest);
32 }); 30 });
33 31
34 MockServerChannel serverChannel; 32 MockServerChannel serverChannel;
35 MemoryResourceProvider resourceProvider; 33 MemoryResourceProvider resourceProvider;
36 AnalysisServer server; 34 AnalysisServer server;
37 AnalysisDomainHandler handler; 35 AnalysisDomainHandler handler;
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 test_beforeAnalysis() async { 774 test_beforeAnalysis() async {
777 addTestFile('int V = 42;'); 775 addTestFile('int V = 42;');
778 createProject(); 776 createProject();
779 // subscribe 777 // subscribe
780 addAnalysisSubscription(AnalysisService.HIGHLIGHTS, testFile); 778 addAnalysisSubscription(AnalysisService.HIGHLIGHTS, testFile);
781 // wait for analysis 779 // wait for analysis
782 await waitForTasksFinished(); 780 await waitForTasksFinished();
783 expect(filesHighlights[testFile], isNotEmpty); 781 expect(filesHighlights[testFile], isNotEmpty);
784 } 782 }
785 } 783 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698