| OLD | NEW |
| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 visitApi() { | 100 visitApi() { |
| 101 outputHeader(); | 101 outputHeader(); |
| 102 writeln(); | 102 writeln(); |
| 103 writeln('/**'); | 103 writeln('/**'); |
| 104 writeln(' * Convenience methods for running integration tests'); | 104 writeln(' * Convenience methods for running integration tests'); |
| 105 writeln(' */'); | 105 writeln(' */'); |
| 106 writeln('library test.integration.methods;'); | 106 writeln('library test.integration.methods;'); |
| 107 writeln(); | 107 writeln(); |
| 108 writeln("import 'dart:async';"); | 108 writeln("import 'dart:async';"); |
| 109 writeln(); | 109 writeln(); |
| 110 writeln("import 'package:analysis_server/src/protocol.dart';"); | 110 writeln("import 'package:analysis_server/plugin/protocol/protocol.dart';"); |
| 111 writeln("import 'package:analysis_server/src/protocol/protocol_internal.dart
';"); |
| 111 writeln("import 'package:unittest/unittest.dart';"); | 112 writeln("import 'package:unittest/unittest.dart';"); |
| 112 writeln(); | 113 writeln(); |
| 113 writeln("import 'integration_tests.dart';"); | 114 writeln("import 'integration_tests.dart';"); |
| 114 writeln("import 'protocol_matchers.dart';"); | 115 writeln("import 'protocol_matchers.dart';"); |
| 115 writeln(); | 116 writeln(); |
| 116 writeln(); | 117 writeln(); |
| 117 writeln('/**'); | 118 writeln('/**'); |
| 118 writeln(' * Convenience methods for running integration tests'); | 119 writeln(' * Convenience methods for running integration tests'); |
| 119 writeln(' */'); | 120 writeln(' */'); |
| 120 writeln('abstract class IntegrationTestMixin {'); | 121 writeln('abstract class IntegrationTestMixin {'); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } else { | 265 } else { |
| 265 writeln('expect(result, isNull);'); | 266 writeln('expect(result, isNull);'); |
| 266 writeln('return null;'); | 267 writeln('return null;'); |
| 267 } | 268 } |
| 268 }); | 269 }); |
| 269 writeln('});'); | 270 writeln('});'); |
| 270 }); | 271 }); |
| 271 writeln('}'); | 272 writeln('}'); |
| 272 } | 273 } |
| 273 } | 274 } |
| OLD | NEW |