| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |