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

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

Issue 792433005: TBR Fix the build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.completion; 5 library test.domain.completion;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/channel/channel.dart'; 10 import 'package:analysis_server/src/channel/channel.dart';
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 int requestCount = 0; 43 int requestCount = 0;
44 String testFile2 = '/project/bin/test2.dart'; 44 String testFile2 = '/project/bin/test2.dart';
45 45
46 AnalysisServer createAnalysisServer(Index index) { 46 AnalysisServer createAnalysisServer(Index index) {
47 return new Test_AnalysisServer( 47 return new Test_AnalysisServer(
48 super.serverChannel, 48 super.serverChannel,
49 super.resourceProvider, 49 super.resourceProvider,
50 super.packageMapProvider, 50 super.packageMapProvider,
51 index, 51 index,
52 new AnalysisServerOptions(), 52 new AnalysisServerOptions(),
53 new MockSdk()); 53 new MockSdk(),
54 new NullInstrumentationServer());
54 } 55 }
55 56
56 void sendRequest(String path) { 57 void sendRequest(String path) {
57 String id = (++requestCount).toString(); 58 String id = (++requestCount).toString();
58 request = new CompletionGetSuggestionsParams(path, 0).toRequest(id); 59 request = new CompletionGetSuggestionsParams(path, 0).toRequest(id);
59 Response response = handler.handleRequest(request); 60 Response response = handler.handleRequest(request);
60 expect(response, isResponseSuccess(id)); 61 expect(response, isResponseSuccess(id));
61 } 62 }
62 63
63 @override 64 @override
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 557
557 void contextsChangedRaw(ContextsChangedEvent newEvent) { 558 void contextsChangedRaw(ContextsChangedEvent newEvent) {
558 super.contextsChanged(newEvent); 559 super.contextsChanged(newEvent);
559 } 560 }
560 561
561 CompletionManager createCompletionManager(AnalysisContext context, 562 CompletionManager createCompletionManager(AnalysisContext context,
562 Source source, SearchEngine searchEngine) { 563 Source source, SearchEngine searchEngine) {
563 return new MockCompletionManager(mockContext, source, searchEngine); 564 return new MockCompletionManager(mockContext, source, searchEngine);
564 } 565 }
565 } 566 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698