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

Unified Diff: pkg/analysis_server/test/domain_server_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/domain_server_test.dart
diff --git a/pkg/analysis_server/test/domain_server_test.dart b/pkg/analysis_server/test/domain_server_test.dart
index d76b376543e2ebe342ed5f685e8246b2f2fcec52..a6d8bb3589dd796ebe14c2ec4ca340fa061d71c5 100644
--- a/pkg/analysis_server/test/domain_server_test.dart
+++ b/pkg/analysis_server/test/domain_server_test.dart
@@ -16,20 +16,28 @@ import 'package:unittest/unittest.dart';
import 'mock_sdk.dart';
import 'mocks.dart';
+import 'utils.dart';
main() {
AnalysisServer server;
ServerDomainHandler handler;
+ initializeTestEnvironment();
+
setUp(() {
var serverChannel = new MockServerChannel();
var resourceProvider = new MemoryResourceProvider();
ExtensionManager manager = new ExtensionManager();
ServerPlugin serverPlugin = new ServerPlugin();
manager.processPlugins([serverPlugin]);
- server = new AnalysisServer(serverChannel, resourceProvider,
- new MockPackageMapProvider(), null, serverPlugin,
- new AnalysisServerOptions(), new MockSdk(),
+ server = new AnalysisServer(
+ serverChannel,
+ resourceProvider,
+ new MockPackageMapProvider(),
+ null,
+ serverPlugin,
+ new AnalysisServerOptions(),
+ new MockSdk(),
InstrumentationService.NULL_SERVICE);
handler = new ServerDomainHandler(server);
});
@@ -38,16 +46,19 @@ main() {
test('getVersion', () {
var request = new ServerGetVersionParams().toRequest('0');
var response = handler.handleRequest(request);
- expect(response.toJson(), equals({
- Response.ID: '0',
- Response.RESULT: {VERSION: AnalysisServer.VERSION}
- }));
+ expect(
+ response.toJson(),
+ equals({
+ Response.ID: '0',
+ Response.RESULT: {VERSION: AnalysisServer.VERSION}
+ }));
});
group('setSubscriptions', () {
test('invalid service name', () {
- Request request = new Request(
- '0', SERVER_SET_SUBSCRIPTIONS, {SUBSCRIPTIONS: ['noSuchService']});
+ Request request = new Request('0', SERVER_SET_SUBSCRIPTIONS, {
+ SUBSCRIPTIONS: ['noSuchService']
+ });
var response = handler.handleRequest(request);
expect(response, isResponseFailure('0'));
});
« no previous file with comments | « pkg/analysis_server/test/domain_execution_test.dart ('k') | pkg/analysis_server/test/edit/assists_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698