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

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

Issue 2945313002: Remove the unused class SingleContextManager (Closed)
Patch Set: Created 3 years, 6 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/protocol/protocol.dart'; 7 import 'package:analysis_server/protocol/protocol.dart';
8 import 'package:analysis_server/protocol/protocol_generated.dart'; 8 import 'package:analysis_server/protocol/protocol_generated.dart';
9 import 'package:analysis_server/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/constants.dart'; 10 import 'package:analysis_server/src/constants.dart';
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 manager.processPlugins([serverPlugin]); 114 manager.processPlugins([serverPlugin]);
115 return new SocketServer( 115 return new SocketServer(
116 new AnalysisServerOptions(), 116 new AnalysisServerOptions(),
117 new DartSdkManager('', false), 117 new DartSdkManager('', false),
118 new FolderBasedDartSdk(resourceProvider, 118 new FolderBasedDartSdk(resourceProvider,
119 FolderBasedDartSdk.defaultSdkDirectory(resourceProvider)), 119 FolderBasedDartSdk.defaultSdkDirectory(resourceProvider)),
120 InstrumentationService.NULL_SERVICE, 120 InstrumentationService.NULL_SERVICE,
121 null, 121 null,
122 serverPlugin, 122 serverPlugin,
123 null, 123 null,
124 null, 124 null);
125 false);
126 } 125 }
127 } 126 }
128 127
129 class _MockRequestHandler implements RequestHandler { 128 class _MockRequestHandler implements RequestHandler {
130 final bool futureException; 129 final bool futureException;
131 130
132 _MockRequestHandler(this.futureException); 131 _MockRequestHandler(this.futureException);
133 132
134 @override 133 @override
135 Response handleRequest(Request request) { 134 Response handleRequest(Request request) {
136 if (futureException) { 135 if (futureException) {
137 new Future(throwException); 136 new Future(throwException);
138 return new Response(request.id); 137 return new Response(request.id);
139 } 138 }
140 throw 'mock request exception'; 139 throw 'mock request exception';
141 } 140 }
142 141
143 void throwException() { 142 void throwException() {
144 throw 'mock future exception'; 143 throw 'mock future exception';
145 } 144 }
146 } 145 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/single_context_manager_test.dart ('k') | pkg/analysis_server/test/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698