diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:08:45 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:08:45 +0000 |
commit | a9ead75506071e83ee16bd71b33f0e31d6b1a29f (patch) | |
tree | f6304ce7f46c8eca028394abc0f9360b9b62be04 /tools/json_schema_compiler/idl_schema_test.py | |
parent | 26b8edabad74c4111b64fc8bb6edad95252053f5 (diff) | |
download | chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.zip chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.tar.gz chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.tar.bz2 |
Add support for 'nocompile' to IDL schema compiler.
The json schema stuff already has this support, to skip generation of C++
code for certain functions. Doing the same thing for IDL is slightly
complicated by the fact that we still want to generate JSON for functions
marked nocompile.
BUG=129080
TEST=includes unit and browser tests
Review URL: https://chromiumcodereview.appspot.com/10435003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/idl_schema_test.py')
-rwxr-xr-x | tools/json_schema_compiler/idl_schema_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/idl_schema_test.py b/tools/json_schema_compiler/idl_schema_test.py index 943c76c..5a941e0 100755 --- a/tools/json_schema_compiler/idl_schema_test.py +++ b/tools/json_schema_compiler/idl_schema_test.py @@ -71,5 +71,11 @@ class IdlSchemaTest(unittest.TestCase): 'type': 'array'}] self.assertEquals(expected, getParams(schema, 'function14')) + def testNoCompile(self): + schema = self.idl_basics + func = getFunction(schema, 'function15') + self.assertTrue(func is not None) + self.assertTrue(func['nocompile']) + if __name__ == '__main__': unittest.main() |