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

Unified Diff: pkg/unittest/test/mock_test.dart

Issue 134963002: pkg/unittest: add @proxy to Mock (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 6 years, 11 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/unittest/lib/mock.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/mock_test.dart
diff --git a/pkg/unittest/test/mock_test.dart b/pkg/unittest/test/mock_test.dart
index 1204c39ffa05c65b4a182cda53f4836bbd57964b..b2c01f4b132f6243f807c9bdd2cd05895be7671d 100644
--- a/pkg/unittest/test/mock_test.dart
+++ b/pkg/unittest/test/mock_test.dart
@@ -7,6 +7,7 @@ import 'package:unittest/unittest.dart';
import 'package:unittest/mock.dart';
class MockList extends Mock implements List {
+ dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class Foo {
@@ -19,6 +20,8 @@ class FooSpy extends Mock implements Foo {
real = new Foo();
this.when(callsTo('sum')).alwaysCall(real.sum);
}
+
+ dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
makeTestLogEntry(String methodName, List args, int time,
@@ -666,10 +669,10 @@ main() {
// This is distinct from value ordering, i.e.
//
// m.when(...).thenReturn(1).thenReturn(2)
- //
+ //
// Here we want to test using distinct matchers being
// applied in order, so we have a single call that
- // matches 3 different behaviors, and test that
+ // matches 3 different behaviors, and test that
// the behaviors are applied in the order they are
// defined.
var m = new Mock();
« no previous file with comments | « pkg/unittest/lib/mock.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698