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

Unified Diff: test/event_test.dart

Issue 1852983002: Fix issues with protobuf equality comparisons (Closed) Base URL: git@github.com:dart-lang/dart-protobuf.git@master
Patch Set: tweak _deepEquals, improve tests Created 4 years, 8 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 | « lib/src/protobuf/utils.dart ('k') | test/json_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/event_test.dart
diff --git a/test/event_test.dart b/test/event_test.dart
index 1b7dbed5e3f3db758b3da404bf50343ce1b1e296..d94c7df80cf3f16088de09f8b51d054e96b3d43c 100644
--- a/test/event_test.dart
+++ b/test/event_test.dart
@@ -13,11 +13,11 @@ import 'package:protobuf/src/protobuf/mixins/event_mixin.dart'
show PbEventMixin, PbFieldChange;
import 'package:test/test.dart' show test, expect, predicate, same;
-import 'mock_util.dart' show MockMessage;
+import 'mock_util.dart' show MockMessage, mockInfo;
class Rec extends MockMessage with PbEventMixin {
- get className => "Rec";
- Rec create() => new Rec();
+ get info_ => _info;
+ static final _info = mockInfo("Rec", () => new Rec());
}
Extension comment = new Extension("Rec", "comment", 5, PbFieldType.OS);
« no previous file with comments | « lib/src/protobuf/utils.dart ('k') | test/json_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698