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

Side by Side Diff: pkg/analysis_server/tool/spec/codegen_inttest_methods.dart

Issue 2401463005: Fix the spec generator to use test rather than unittest (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_matchers.dart » ('j') | 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 /** 5 /**
6 * Code generation for the file "integration_test_methods.dart". 6 * Code generation for the file "integration_test_methods.dart".
7 */ 7 */
8 library codegenInttestMethods; 8 library codegenInttestMethods;
9 9
10 import 'dart:convert'; 10 import 'dart:convert';
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 writeln('/**'); 97 writeln('/**');
98 writeln(' * Convenience methods for running integration tests'); 98 writeln(' * Convenience methods for running integration tests');
99 writeln(' */'); 99 writeln(' */');
100 writeln('library test.integration.methods;'); 100 writeln('library test.integration.methods;');
101 writeln(); 101 writeln();
102 writeln("import 'dart:async';"); 102 writeln("import 'dart:async';");
103 writeln(); 103 writeln();
104 writeln("import 'package:analysis_server/plugin/protocol/protocol.dart';"); 104 writeln("import 'package:analysis_server/plugin/protocol/protocol.dart';");
105 writeln( 105 writeln(
106 "import 'package:analysis_server/src/protocol/protocol_internal.dart';") ; 106 "import 'package:analysis_server/src/protocol/protocol_internal.dart';") ;
107 writeln("import 'package:unittest/unittest.dart';"); 107 writeln("import 'package:test/test.dart';");
108 writeln(); 108 writeln();
109 writeln("import 'integration_tests.dart';"); 109 writeln("import 'integration_tests.dart';");
110 writeln("import 'protocol_matchers.dart';"); 110 writeln("import 'protocol_matchers.dart';");
111 writeln(); 111 writeln();
112 writeln(); 112 writeln();
113 writeln('/**'); 113 writeln('/**');
114 writeln(' * Convenience methods for running integration tests'); 114 writeln(' * Convenience methods for running integration tests');
115 writeln(' */'); 115 writeln(' */');
116 writeln('abstract class IntegrationTestMixin {'); 116 writeln('abstract class IntegrationTestMixin {');
117 indent(() { 117 indent(() {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 writeln('ResponseDecoder decoder = new ResponseDecoder($kind);'); 255 writeln('ResponseDecoder decoder = new ResponseDecoder($kind);');
256 writeln("return new $resultClass.fromJson(decoder, 'result', result);"); 256 writeln("return new $resultClass.fromJson(decoder, 'result', result);");
257 } else { 257 } else {
258 writeln('expect(result, isNull);'); 258 writeln('expect(result, isNull);');
259 writeln('return null;'); 259 writeln('return null;');
260 } 260 }
261 }); 261 });
262 writeln('}'); 262 writeln('}');
263 } 263 }
264 } 264 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698