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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom_tests/parse/translate_unittest.py

Issue 877993004: Revert "Update mojo sdk to rev 8d45c89c30b230843c5bd6dd0693a555750946c0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom_tests/parse/translate_unittest.py
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom_tests/parse/translate_unittest.py b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom_tests/parse/translate_unittest.py
index 29dd906450797e9c206d2b6816c892c4bf8ef582..20704dca4d36779bb6161657e552f23f22219bfd 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom_tests/parse/translate_unittest.py
+++ b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom_tests/parse/translate_unittest.py
@@ -54,10 +54,11 @@ class TranslateTest(unittest.TestCase):
ast.UnionField("b", None, None, "string")]))])
expected = [{
"name": "SomeUnion",
- "fields": [{"kind": "i32", "name": "a"},
- {"kind": "s", "name": "b"}]}]
+ "fields": [
+ {"kind": "i32", "name": "a", "ordinal": None},
+ {"kind": "s", "name": "b", "ordinal": None}]}]
actual = translate.Translate(tree, "mojom_tree")
- self.assertEquals(actual["unions"], expected)
+ self.assertEquals(actual["union"], expected)
if __name__ == "__main__":

Powered by Google App Engine
This is Rietveld 408576698