Chromium Code Reviews| Index: pkg/mock/lib/mock.dart |
| diff --git a/pkg/unittest/lib/mock.dart b/pkg/mock/lib/mock.dart |
| similarity index 99% |
| copy from pkg/unittest/lib/mock.dart |
| copy to pkg/mock/lib/mock.dart |
| index 02c40e302263c3bece2b24b7c4a7881eedcce223..61db97efcedc49e940b0f3c63b82713662d3b4a5 100644 |
| --- a/pkg/unittest/lib/mock.dart |
| +++ b/pkg/mock/lib/mock.dart |
| @@ -5,23 +5,6 @@ |
| /** |
| * A simple mocking/spy library. |
| * |
| - * ## Installing ## |
| - * |
| - * Use [pub][] to install this package. Add the following to your `pubspec.yaml` |
| - * file. |
| - * |
| - * dependencies: |
| - * unittest: any |
| - * |
| - * Then run `pub install`. |
| - * |
| - * Import this into your Dart code with: |
| - * |
| - * import 'package:unittest/mock.dart'; |
| - * |
| - * For more information, see the [unittest package on pub.dartlang.org] |
| - * (http://pub.dartlang.org/packages/unittest). |
| - * |
| * ## Using ## |
|
Siggi Cherem (dart-lang)
2014/03/24 19:09:57
nit: probably remove this subtitle too :)
kevmoo
2014/03/24 19:21:56
Done.
|
| * |
| * To create a mock objects for some class T, create a new class using: |
| @@ -122,12 +105,12 @@ |
| * [pub]: http://pub.dartlang.org |
| */ |
| -library unittest.mock; |
| +library mock; |
| import 'dart:mirrors'; |
| import 'dart:collection' show LinkedHashMap; |
| -import 'matcher.dart'; |
| +import 'package:matcher/matcher.dart'; |
| /** |
| * The error formatter for mocking is a bit different from the default one |