| 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 library mocks; | 5 library mocks; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 |
| 10 @MirrorsUsed(targets: 'mocks', override: '*') |
| 9 import 'dart:mirrors'; | 11 import 'dart:mirrors'; |
| 10 | 12 |
| 11 import 'package:analyzer/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
| 12 import 'package:analyzer/src/generated/source.dart'; | 14 import 'package:analyzer/src/generated/source.dart'; |
| 13 import 'package:analysis_server/src/analysis_logger.dart'; | 15 import 'package:analysis_server/src/analysis_logger.dart'; |
| 14 import 'package:analysis_server/src/analysis_server.dart'; | 16 import 'package:analysis_server/src/analysis_server.dart'; |
| 15 import 'package:analysis_server/src/channel.dart'; | 17 import 'package:analysis_server/src/channel.dart'; |
| 16 import 'package:analysis_server/src/protocol.dart'; | 18 import 'package:analysis_server/src/protocol.dart'; |
| 17 import 'package:matcher/matcher.dart'; | 19 import 'package:matcher/matcher.dart'; |
| 18 import 'package:mock/mock.dart'; | 20 import 'package:mock/mock.dart'; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 192 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 191 } | 193 } |
| 192 | 194 |
| 193 /** | 195 /** |
| 194 * A mock [Source]. Particularly useful when all that is needed is the | 196 * A mock [Source]. Particularly useful when all that is needed is the |
| 195 * encoding. | 197 * encoding. |
| 196 */ | 198 */ |
| 197 class MockSource extends Mock implements Source { | 199 class MockSource extends Mock implements Source { |
| 198 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 200 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 199 } | 201 } |
| OLD | NEW |