Consolidate WASM bindings into a single C++ file.
PiperOrigin-RevId: 827850819 Change-Id: I23e099d4e72557d79354339953246ac4eeee7ca3
This commit is contained in:
committed by
Copybara-Service
parent
7d7648f7ed
commit
10130297c0
@@ -33,15 +33,11 @@ class BindingsDiffTest(absltest.TestCase):
|
||||
self.generated_hdr = f.read()
|
||||
with open(SCRIPT_DIR / 'generated/bindings.cc', 'r') as f:
|
||||
self.generated_src = f.read()
|
||||
self.template_path_h = SCRIPT_DIR / 'templates/bindings.h'
|
||||
self.template_path_cc = SCRIPT_DIR / 'templates/bindings.cc'
|
||||
self.generated_path_h = SCRIPT_DIR / 'generated/bindings.h'
|
||||
self.generated_path_cc = SCRIPT_DIR / 'generated/bindings.cc'
|
||||
|
||||
self.builder = binding_builder.BindingBuilder(
|
||||
self.template_path_h,
|
||||
self.template_path_cc,
|
||||
self.generated_path_h,
|
||||
self.generated_path_cc,
|
||||
)
|
||||
|
||||
@@ -54,14 +50,6 @@ class BindingsDiffTest(absltest.TestCase):
|
||||
msg=ERROR_MESSAGE.format('bindings.cc'),
|
||||
)
|
||||
|
||||
def test_bindings_header(self):
|
||||
generator_output = (self.builder.set_headers().to_string_header())
|
||||
self.assertEqual(
|
||||
generator_output,
|
||||
self.generated_hdr,
|
||||
msg=ERROR_MESSAGE.format('bindings.h'),
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
absltest.main()
|
||||
|
||||
Reference in New Issue
Block a user