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

Unified Diff: test/message_test.dart

Issue 1852983002: Fix issues with protobuf equality comparisons (Closed) Base URL: git@github.com:dart-lang/dart-protobuf.git@master
Patch Set: Created 4 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
Index: test/message_test.dart
diff --git a/test/message_test.dart b/test/message_test.dart
index 62af81c3e0c1a018d3530e0113431fb94ef12ec3..5fcf4ca54c0665e6a0722083ce1faff269a3cae0 100644
--- a/test/message_test.dart
+++ b/test/message_test.dart
@@ -7,19 +7,19 @@ library message_test;
import 'package:test/test.dart' show test, expect, predicate, throwsA;
-import 'mock_util.dart' show MockMessage;
+import 'mock_util.dart' show MockMessage, mockInfo;
class Rec extends MockMessage {
- get className => "Rec";
- Rec create() => new Rec();
+ get info_ => _info;
+ static final _info = mockInfo("Rec", () => new Rec());
}
-throwsError(Type expectedType, String expectedMessage) => throwsA(
- predicate((x) {
- expect(x.runtimeType, expectedType);
- expect(x.message, expectedMessage);
- return true;
-}));
+throwsError(Type expectedType, String expectedMessage) =>
+ throwsA(predicate((x) {
+ expect(x.runtimeType, expectedType);
+ expect(x.message, expectedMessage);
+ return true;
+ }));
main() {
test('getField with invalid tag throws exception', () {
« lib/src/protobuf/utils.dart ('K') | « test/map_mixin_test.dart ('k') | test/mock_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698