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

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

Issue 1833593002: Mojom compiler: Port pack tests to the frontend. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix spelling of test name. 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
« no previous file with comments | « no previous file | mojom/mojom_parser/mojom/computed_data.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py b/mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py
index 14f699da34d98d592c7167f7ed2cd9fa0e3691e0..e30a2aba19311594a47f4897c459272007152dab 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py
@@ -101,7 +101,7 @@ def TestNullableTypes():
mojom.SHAREDBUFFER.MakeNullableKind(),
mojom.InterfaceRequest().MakeNullableKind())
fields = (1, 2, 4, 3, 5, 6, 8, 7, 9, 10, 11)
- offsets = (0, 8, 12, 16, 24, 32, 36, 40, 48, 52, 56)
+ offsets = (0, 8, 12, 16, 24, 32, 36, 40, 48, 56, 60)
return TestSequence(kinds, fields, offsets)
@@ -114,7 +114,7 @@ def TestAllTypes():
mojom.UINT64, mojom.Struct('test'), mojom.Array(),
mojom.STRING.MakeNullableKind()),
(1, 2, 4, 5, 7, 3, 6, 8, 9, 10, 11, 13, 12, 14, 15, 16, 17, 18),
- (0, 1, 2, 4, 6, 8, 16, 24, 28, 32, 40, 44, 48, 56, 64, 72, 80, 88))
+ (0, 1, 2, 4, 6, 8, 16, 24, 28, 32, 40, 44, 48, 56, 64, 72, 80))
def TestPaddingPackedOutOfOrderByOrdinal():
« no previous file with comments | « no previous file | mojom/mojom_parser/mojom/computed_data.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698