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

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

Issue 2872803003: Remove unused reference to SearchEngine (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 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';
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Associate part with library 55 // Associate part with library
56 if (!enableNewAnalysisDriver) { 56 if (!enableNewAnalysisDriver) {
57 context.computeResult(libSource, LIBRARY_CYCLE_UNITS); 57 context.computeResult(libSource, LIBRARY_CYCLE_UNITS);
58 } 58 }
59 59
60 // Build the request 60 // Build the request
61 CompletionRequestImpl baseRequest = new CompletionRequestImpl( 61 CompletionRequestImpl baseRequest = new CompletionRequestImpl(
62 enableNewAnalysisDriver ? await driver.getResult(testFile) : null, 62 enableNewAnalysisDriver ? await driver.getResult(testFile) : null,
63 enableNewAnalysisDriver ? null : context, 63 enableNewAnalysisDriver ? null : context,
64 provider, 64 provider,
65 searchEngine,
66 testSource, 65 testSource,
67 completionOffset, 66 completionOffset,
68 new CompletionPerformance(), 67 new CompletionPerformance(),
69 null); 68 null);
70 Completer<DartCompletionRequest> requestCompleter = 69 Completer<DartCompletionRequest> requestCompleter =
71 new Completer<DartCompletionRequest>(); 70 new Completer<DartCompletionRequest>();
72 DartCompletionRequestImpl 71 DartCompletionRequestImpl
73 .from(baseRequest, resultDescriptor: RESOLVED_UNIT1) 72 .from(baseRequest, resultDescriptor: RESOLVED_UNIT1)
74 .then((DartCompletionRequest request) { 73 .then((DartCompletionRequest request) {
75 requestCompleter.complete(request); 74 requestCompleter.complete(request);
(...skipping 27 matching lines...) Expand all
103 void assertImportedLib(String expectedUri) { 102 void assertImportedLib(String expectedUri) {
104 ImportElement importElem = importNamed(expectedUri); 103 ImportElement importElem = importNamed(expectedUri);
105 expect(importElem.importedLibrary.exportNamespace, isNotNull); 104 expect(importElem.importedLibrary.exportNamespace, isNotNull);
106 } 105 }
107 106
108 // Assert that the new imports each have an export namespace 107 // Assert that the new imports each have an export namespace
109 assertImportedLib(null /* dart:core */); 108 assertImportedLib(null /* dart:core */);
110 assertImportedLib('/libA.dart'); 109 assertImportedLib('/libA.dart');
111 } 110 }
112 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698