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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py

Issue 1719873003: Mojom runtime type info: New implementation for Go. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebasing Created 4 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
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py b/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py
index 4bc4ca2c7aaeea3e49d9d58673e42d50478f9d0d..6b177e31603c1eb5ebc3f8ebc52ff92be89e289e 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py
@@ -215,8 +215,10 @@ class TestUserDefinedFromTypeRef(unittest.TestCase):
# Check the translation
if interface_request:
self.assertEquals('AnInterface', interface.kind.name)
+ self.assertEquals('some_type_key', interface.kind.type_key)
else:
self.assertEquals('AnInterface', interface.name)
+ self.assertEquals('some_type_key', interface.type_key)
self.assertEquals(nullable, interface.is_nullable)
self.assertEquals(interface_request, isinstance(interface,
module.InterfaceRequest))
@@ -942,6 +944,7 @@ class TestKindFromMojom(unittest.TestCase):
self.assertTrue(module.IsStructKind(result))
self.assertEquals(mojom_struct.decl_data.short_name, result.name)
self.assertEquals(result, result.fields[0].kind)
+ self.assertEquals(type_key, result.type_key)
# Make sure we create only one module object per type.
result2 = t.KindFromMojom(mojom_type)
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698