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

Issue 1833593002: Mojom compiler: Port pack tests to the frontend. (Closed)

Created:
4 years, 9 months ago by rudominer
Modified:
4 years, 9 months ago
Reviewers:
azani
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Mojom compiler: Port pack tests to the frontend. We add a new test, TestStructsComputedData, to computed_data_test.go, with a bunch of test cases that correspond to all of the test cases in pack_tests.py and pack_unittests.py. In a later CL we plan to delete those two python tests because we will be deleting the code in pack.py that they test because that logic is now being performed by the frontend instead. I turns out that pack_tests.py is not actually being run and contains a bug. In this patch I also fix that bug. But I do not bother fixing the problem that it is not being run becuase, as I mentioned, I am about to delete it. Finally I have eliminated a little duplicate code in computed_data.go. BUG=#713 R=azani@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/b013d061e7904f5e8a26fe94e64481b01444886d

Patch Set 1 #

Patch Set 2 : Fix spelling of test name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -16 lines) Patch
M mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py View 2 chunks +2 lines, -2 lines 0 comments Download
M mojom/mojom_parser/mojom/computed_data.go View 1 chunk +2 lines, -14 lines 0 comments Download
M mojom/mojom_parser/parser/computed_data_test.go View 1 2 chunks +378 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (9 generated)
rudominer
Hi Alex, ptal
4 years, 9 months ago (2016-03-23 23:23:25 UTC) #8
azani
lgtm
4 years, 9 months ago (2016-03-23 23:32:25 UTC) #9
rudominer
4 years, 9 months ago (2016-03-24 06:32:30 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
b013d061e7904f5e8a26fe94e64481b01444886d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698