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

Unified Diff: pkg/mock/lib/mock.dart

Issue 209333003: pkg/mock - NEW! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/mock/LICENSE ('k') | pkg/mock/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b95f8f30d6f38f7bd95b12438b52706a907d192d 100644
--- a/pkg/unittest/lib/mock.dart
+++ b/pkg/mock/lib/mock.dart
@@ -5,25 +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 ##
- *
* To create a mock objects for some class T, create a new class using:
*
* class MockT extends Mock implements T {};
@@ -122,12 +103,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
« no previous file with comments | « pkg/mock/LICENSE ('k') | pkg/mock/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698