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

Side by Side Diff: pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart

Issue 1778663006: Clean up some warnings (issue 25964) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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.services.completion.dart.manager; 5 library test.services.completion.dart.manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
10 import 'package:analysis_server/src/services/completion/completion_core.dart'; 10 import 'package:analysis_server/src/services/completion/completion_core.dart';
11 import 'package:analysis_server/src/services/completion/completion_performance.d art'; 11 import 'package:analysis_server/src/services/completion/completion_performance.d art';
12 import 'package:analysis_server/src/services/completion/dart/completion_manager. dart'; 12 import 'package:analysis_server/src/services/completion/dart/completion_manager. dart';
13 import 'package:analysis_server/src/services/completion/dart/imported_reference_ contributor.dart'; 13 import 'package:analysis_server/src/services/completion/dart/imported_reference_ contributor.dart';
14 import 'package:analyzer/dart/element/element.dart'; 14 import 'package:analyzer/dart/element/element.dart';
15 import 'package:analyzer/src/task/dart.dart';
15 import 'package:analyzer/task/dart.dart'; 16 import 'package:analyzer/task/dart.dart';
16 import 'package:analyzer/src/task/dart.dart';
17 import 'package:test_reflective_loader/test_reflective_loader.dart'; 17 import 'package:test_reflective_loader/test_reflective_loader.dart';
18 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
19 19
20 import '../../../utils.dart'; 20 import '../../../utils.dart';
21 import 'completion_contributor_util.dart'; 21 import 'completion_contributor_util.dart';
22 import 'package:analyzer/src/generated/source.dart';
23 22
24 main() { 23 main() {
25 initializeTestEnvironment(); 24 initializeTestEnvironment();
26 defineReflectiveTests(CompletionManagerTest); 25 defineReflectiveTests(CompletionManagerTest);
27 } 26 }
28 27
29 @reflectiveTest 28 @reflectiveTest
30 class CompletionManagerTest extends DartCompletionContributorTest { 29 class CompletionManagerTest extends DartCompletionContributorTest {
31 @override 30 @override
32 DartCompletionContributor createContributor() { 31 DartCompletionContributor createContributor() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void assertImportedLib(String expectedUri) { 96 void assertImportedLib(String expectedUri) {
98 ImportElement importElem = importNamed(expectedUri); 97 ImportElement importElem = importNamed(expectedUri);
99 expect(importElem.importedLibrary.exportNamespace, isNotNull); 98 expect(importElem.importedLibrary.exportNamespace, isNotNull);
100 } 99 }
101 100
102 // Assert that the new imports each have an export namespace 101 // Assert that the new imports each have an export namespace
103 assertImportedLib(null /* dart:core */); 102 assertImportedLib(null /* dart:core */);
104 assertImportedLib('/libA.dart'); 103 assertImportedLib('/libA.dart');
105 } 104 }
106 } 105 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/edit/fixes_test.dart ('k') | pkg/analyzer/test/generated/declaration_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698