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

Issue 9456007: Add wider support to json_schema_compiler (Closed)

Created:
8 years, 10 months ago by calamity
Modified:
8 years, 9 months ago
CC:
chromium-reviews, pam+watch_chromium.org, benwells
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

json_schema_compiler: Added wider support for OBJECTs and ENUMs. Used the new 'dependencies' property in the jsons. Refactored to avoid code duplication. Added tests for new features and where tests were lacking. BUG= TEST=unit_tests --gtest_filter=JsonSchemaCompiler* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123909

Patch Set 1 #

Total comments: 37

Patch Set 2 : rework, add nocompile to extension.json #

Total comments: 15

Patch Set 3 : rework #

Total comments: 11

Patch Set 4 : small fixes #

Patch Set 5 : satisfy non-clang compilers #

Patch Set 6 : rebase to escape build problems #

Patch Set 7 : reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+539 lines, -532 lines) Patch
M build/json_schema_compile.gypi View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/extension.json View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/json_schema_compiler/cc_generator.py View 1 2 3 4 10 chunks +139 lines, -99 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 2 chunks +13 lines, -10 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 2 1 chunk +3 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/cpp_util.py View 1 2 1 chunk +3 lines, -27 lines 0 comments Download
M tools/json_schema_compiler/h_generator.py View 1 2 3 10 chunks +79 lines, -52 lines 0 comments Download
M tools/json_schema_compiler/model.py View 1 2 3 6 chunks +39 lines, -12 lines 0 comments Download
D tools/json_schema_compiler/test/array.json View 1 chunk +0 lines, -120 lines 0 comments Download
D tools/json_schema_compiler/test/array_unittest.cc View 1 chunk +0 lines, -143 lines 0 comments Download
A + tools/json_schema_compiler/test/arrays.json View 2 chunks +2 lines, -2 lines 0 comments Download
A + tools/json_schema_compiler/test/arrays_unittest.cc View 1 2 3 6 chunks +7 lines, -7 lines 0 comments Download
M tools/json_schema_compiler/test/choices_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/test/crossref.json View 2 chunks +33 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/test/crossref_unittest.cc View 1 2 chunks +59 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/test/json_schema_compiler_tests.gyp View 1 chunk +2 lines, -1 line 0 comments Download
A tools/json_schema_compiler/test/objects.json View 1 chunk +60 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/test/objects_unittest.cc View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/test/simple_api_unittest.cc View 2 chunks +18 lines, -1 line 0 comments Download
M tools/json_schema_compiler/util.h View 1 chunk +7 lines, -15 lines 0 comments Download
M tools/json_schema_compiler/util_cc_helper.py View 1 chunk +4 lines, -30 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
calamity
Sorry about the huge CL, got a lot done that would be really slow to ...
8 years, 10 months ago (2012-02-23 11:31:00 UTC) #1
calamity
8 years, 10 months ago (2012-02-23 12:12:24 UTC) #2
not at google - send to devlin
Basically LG, just a bunch of nits and requests to add comments where things confuse ...
8 years, 10 months ago (2012-02-24 03:53:05 UTC) #3
Yoyo Zhou
http://codereview.chromium.org/9456007/diff/1/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): http://codereview.chromium.org/9456007/diff/1/tools/json_schema_compiler/cc_generator.py#newcode211 tools/json_schema_compiler/cc_generator.py:211: """Generates a function that returns the Value representation of ...
8 years, 10 months ago (2012-02-24 04:02:22 UTC) #4
calamity
I had to add nocompile to extension.json because it's a dependency of tabs.json so this ...
8 years, 10 months ago (2012-02-24 15:10:40 UTC) #5
Yoyo Zhou
http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/model.py File tools/json_schema_compiler/model.py (right): http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/model.py#newcode140 tools/json_schema_compiler/model.py:140: from_api=False, Unless I'm reading something incorrectly, it looks like ...
8 years, 10 months ago (2012-02-24 23:39:47 UTC) #6
not at google - send to devlin
http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/cc_generator.py#newcode152 tools/json_schema_compiler/cc_generator.py:152: CHOICES properties are not supported. Similar comment to the ...
8 years, 10 months ago (2012-02-26 23:51:53 UTC) #7
not at google - send to devlin
http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/model.py File tools/json_schema_compiler/model.py (right): http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/model.py#newcode64 tools/json_schema_compiler/model.py:64: - |to_api| indicates that the type is going to ...
8 years, 10 months ago (2012-02-26 23:53:34 UTC) #8
calamity
http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/cc_generator.py#newcode152 tools/json_schema_compiler/cc_generator.py:152: CHOICES properties are not supported. On 2012/02/26 23:51:53, kalman ...
8 years, 10 months ago (2012-02-27 04:57:30 UTC) #9
not at google - send to devlin
lgtm, just those last couple of things. http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/test/objects_unittest.cc File tools/json_schema_compiler/test/objects_unittest.cc (right): http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/test/objects_unittest.cc#newcode26 tools/json_schema_compiler/test/objects_unittest.cc:26: EXPECT_EQ(2UL, params->info.strings.size()); ...
8 years, 10 months ago (2012-02-27 06:04:47 UTC) #10
Yoyo Zhou
LGTM http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/test/objects_unittest.cc File tools/json_schema_compiler/test/objects_unittest.cc (right): http://codereview.chromium.org/9456007/diff/7003/tools/json_schema_compiler/test/objects_unittest.cc#newcode26 tools/json_schema_compiler/test/objects_unittest.cc:26: EXPECT_EQ(2UL, params->info.strings.size()); On 2012/02/27 06:04:47, kalman wrote: > ...
8 years, 9 months ago (2012-02-28 00:29:46 UTC) #11
calamity
Thanks for the review. http://codereview.chromium.org/9456007/diff/12003/build/json_schema_compile.gypi File build/json_schema_compile.gypi (right): http://codereview.chromium.org/9456007/diff/12003/build/json_schema_compile.gypi#newcode31 build/json_schema_compile.gypi:31: # platforms. On 2012/02/28 00:29:46, ...
8 years, 9 months ago (2012-02-28 01:01:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9456007/15002
8 years, 9 months ago (2012-02-28 01:02:28 UTC) #13
commit-bot: I haz the power
Try job failure for 9456007-15002 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-02-28 01:30:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9456007/18003
8 years, 9 months ago (2012-02-28 02:18:53 UTC) #15
commit-bot: I haz the power
Try job failure for 9456007-18003 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-02-28 03:01:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9456007/15028
8 years, 9 months ago (2012-02-28 03:22:12 UTC) #17
commit-bot: I haz the power
Can't process patch for file tools/json_schema_compiler/cpp_type_generator_test.py. File's status is None, patchset upload is incomplete.
8 years, 9 months ago (2012-02-28 03:22:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9456007/20004
8 years, 9 months ago (2012-02-28 03:24:19 UTC) #19
commit-bot: I haz the power
8 years, 9 months ago (2012-02-28 05:51:45 UTC) #20
Change committed as 123909

Powered by Google App Engine
This is Rietveld 408576698