Joshua Haberman
f9efbcd5d6
Added missing append fallback.
5 years ago
Joshua Haberman
059f226d41
Unit tests for maps generated code.
5 years ago
Joshua Haberman
806c8c9c6e
Removed obsolete testing files.
5 years ago
Joshua Haberman
2a85bef825
Generated code interface for maps is complete, though not yet tested.
5 years ago
Joshua Haberman
7f5fe52dfa
Fixes for non-C89 code.
5 years ago
Joshua Haberman
382f92a87f
Maps encode and decode successfully!
5 years ago
Joshua Haberman
4c57b1fefd
More progress on Lua extension.
5 years ago
Joshua Haberman
d6c3152c0b
Added more Lua tests that are passing.
...
Also ripped out the ctype checking in upb_table, it
was not helpful (didn't help catch bugs) but was causing
problems.
5 years ago
Joshua Haberman
ae66e571d4
Fixed some bugs and added a few more tests.
5 years ago
Joshua Haberman
bfc86d3577
Fixed many bugs, basic Lua test passes!
5 years ago
Joshua Haberman
b518b06d75
Lua test program is loaded successfully.
5 years ago
Joshua Haberman
88d996132e
Added Lua main.c test driver program.
5 years ago
Joshua Haberman
626ec4bfcf
Everything builds, test pass except test_decoder.
5 years ago
Joshua Haberman
715718d5a5
Changed endsubmsg handler to return the closure of the submessage.
...
This is a behavior change to help out PHP for the lazy wrappers
optimization.
5 years ago
Esun Kim
6f9a9fb2fa
Rename MurmurHash2 to upb_murmur_hash2
5 years ago
Esun Kim
2c3a28e411
Add -Wstrict-prototypes option
5 years ago
Google-Autofuzz
8f19667786
modified fuzz config
6 years ago
Google AutoFuzz Team
47f4983fcc
Create README
6 years ago
Joshua Haberman
493e9b2614
Build fixes from fuzz target.
6 years ago
Google AutoFuzz Team
c4a8498103
Add simple fuzz target for upb
6 years ago
Joshua Haberman
901463e41e
Added benchmark of parsing.
6 years ago
Joshua Haberman
5e5e0cf24a
More Blaze fixes.
6 years ago
Joshua Haberman
151ebc8a29
Fixed oneof case accessor to cast to enum for C++.
6 years ago
Josh Haberman
cd9e1e6817
upb_proto_library() aspect is working, even for external repos.
6 years ago
Josh Haberman
f3c560122a
upb_proto_library() works for local project!
...
Doesn't work for remote projects yet though.
6 years ago
Joshua Haberman
cf35baa1ad
Moved macros from upb.h to port_def.inc to avoid leaking them to users. ( #160 )
...
* Use port_def.inc to prevent macros from leaking to users.
* Added helpful comments to port_def.inc/port_undef.inc.
6 years ago
Josh Haberman
32e3f394b4
A few small API tweaks.
...
- Foo_parsenew() -> Foo_parse().
- parse function takes plain (const char*, size_t) instead of
upb_strview. The latter is mainly useful for strings inside
message objects.
6 years ago
Shahid
afaa22eb3d
Update test_varint.c
6 years ago
Josh Haberman
22ad7121c2
Fixes for google3.
6 years ago
Josh Haberman
865876895d
Fixed tests and code.
6 years ago
Josh Haberman
0dbbfd1f80
Added missing functions.
6 years ago
Josh Haberman
8980f6db5c
text_printer.h now successfully compiles.
6 years ago
Paul Yang
c7870e0f77
Supprot FieldMask json encoding/decoding. ( #147 )
6 years ago
Joshua Haberman
01557462cc
upb_symtab_add() returns upb_filedef* instead of bool.
6 years ago
Joshua Haberman
84fb01ad0f
Removed the JIT. Nobody was actually using it, and table-driven should achieve 80-90% of the perf.
6 years ago
Joshua Haberman
754b9f1cfd
All tests pass again!
6 years ago
Joshua Haberman
cb26d883d1
WIP.
6 years ago
Joshua Haberman
ef7c50223a
All tests pass again!
6 years ago
Joshua Haberman
48863ea0be
A lot more tests are working now.
6 years ago
Joshua Haberman
d2f9bec5c6
Removed old-style C++ handlers that relied on UB in favor of more normal ones.
6 years ago
Joshua Haberman
0553eff64a
upb_refcounted is gone! Some tests still to fix.
6 years ago
Josh Haberman
9ea6bb4678
Renamed upb_stringview -> upb_strview for C terseness.
6 years ago
Josh Haberman
b996854899
Added missing test_cpp.proto.
6 years ago
Josh Haberman
9dd2446531
test_cpp is working!
6 years ago
Josh Haberman
5e958a8c05
test_json is working!
6 years ago
Joshua Haberman
377871f104
Got test_decoder working!
6 years ago
Joshua Haberman
380558922b
test_encoder passes! Other tests still need to be fixed.
6 years ago
Joshua Haberman
ffae78df27
Updated encoder to new API.
6 years ago
Joshua Haberman
7ff8413a03
Ported some tests.
6 years ago
Paul Yang
13c59cb051
Implement json decoding for Any message. ( #130 )
...
* Implement json decoding for Any message.
type url may not appear as the first value in json. As a result,
other data cannot be resolved before resolving type url. To solve that,
this change caches the start and end position of unparsed values and
resolve them in end_any_object when type url has been resolved.
* Handle Any in switch
* Update json parser size
* Fix comments
* Sync upstream
* Add dependency on upb_pb for upb_json
* Debug failed test
* Fix cmake
* Update test generated files
* Remove debug tests
6 years ago