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

Unified Diff: mojo/dart/unittests/embedder_tests/bindings_generation_test.dart

Issue 1958463003: Mojom compiler: Eliminate duplicate representation of enum values in mojom_files.mojom. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Responded to code reveiw comments. Created 4 years, 7 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: mojo/dart/unittests/embedder_tests/bindings_generation_test.dart
diff --git a/mojo/dart/unittests/embedder_tests/bindings_generation_test.dart b/mojo/dart/unittests/embedder_tests/bindings_generation_test.dart
index 80cd0d40e258295e740408205051751e55941f98..efc3bf71171950fd7abc24df1a6c289e675f5cb6 100644
--- a/mojo/dart/unittests/embedder_tests/bindings_generation_test.dart
+++ b/mojo/dart/unittests/embedder_tests/bindings_generation_test.dart
@@ -453,8 +453,7 @@ testValidateEnumType() {
Expect.isNotNull(ev.declData);
Expect.isNotNull(labelMap[ev.declData.shortName]);
- // Check that the enumTypeKey matches the enumID.
- Expect.equals(ev.enumTypeKey, enumID);
+ // Check that the enum value's intValue is as expected.
Expect.equals(ev.intValue, labelMap[ev.declData.shortName]);
});
}
« no previous file with comments | « mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart ('k') | mojo/go/tests/validation_type_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698