summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-02-18Change the API for getting the bootstrapped defs.Joshua Haberman
The symtab that contains them is now hidden, and you can look them up by name but there is no access to the symtab itself, so there is no risk of mutating it (by extending it, adding other defs to it, etc).
2011-02-17Split inttable into a hash part and an array part.Joshua Haberman
upb_inttable() now supports a "compact" operation that will decide on an array size and put all entries with small enough keys into the array part for faster lookup. Also exposed the upb_itof_ent structure and put a few useful values there, so they are one fewer pointer chase away.
2011-02-10Add (but do not activate) an SSE varint decoder.Joshua Haberman
2011-02-06All tests pass again, valgrind-clean! Next up: benchmarks.Joshua Haberman
2011-02-05Another round of fixes.Joshua Haberman
test_vs_proto2.googlemessage1 passes again, with no memory leaks!
2011-02-05Tons of work: we're close to passing test_vs_proto2 again.Joshua Haberman
2011-02-04Improved table benchmark accuracy and output formatting.Joshua Haberman
2011-01-30Fixes to decoder and textprinter: it works (for some input)!Joshua Haberman
A protobuf -> text stream for descriptor.proto now outputs the same text as proto2.
2011-01-29Fixes to decoder, stdio, textprinter.Joshua Haberman
2011-01-22Added test_stream.c for testing upb_stream.h.Joshua Haberman
2011-01-22upb bootstraps again! and with no memory leaks!Joshua Haberman
2011-01-21Debugging test_def, it's close to working again!Joshua Haberman
2010-08-02Fleshed out upb_msg: test_vs_proto2 compiles but fails.Joshua Haberman
2010-07-21Updated Lua extension to handle fielddefs.Joshua Haberman
2010-07-17Add forgotten test_decoder.c.Joshua Haberman
2010-07-11Allow static upb_strings.Joshua Haberman
This can allow strings to reference static data, and reduced the memory footprint of test_def by about 10% (3k).
2010-07-10Successfully bootstraps!!Joshua Haberman
2010-07-10Fixed upb_string error with strange vsnprintf() behavior.Joshua Haberman
2010-07-10Incremental progress towards getting upb_def to bootstrap.Joshua Haberman
2010-07-10Fleshed out upb_string further. Now upb_def's onlyJoshua Haberman
unresolved references are upb_src.
2010-07-10Tests for string and fleshed out implementation.Joshua Haberman
2010-07-09Tweaks to upb_src/upb_sink interfaces.Joshua Haberman
2010-01-16Removed union tag from types.Joshua Haberman
2010-01-15Remove struct keyword from all types, use typedef instead.Joshua Haberman
2010-01-15upb_parser -> upb_decoderJoshua Haberman
2010-01-05Merge branch 'data-refactoring'. Ported benchmarks.Joshua Haberman
Conflicts: src/upb_data.c src/upb_data.h
2010-01-05Ported/fixed tests to new data types.Joshua Haberman
2010-01-01Bugfixes: descriptorgen works without leaks!Joshua Haberman
2009-12-06Truly fixed type cyclic refcounting.Joshua Haberman
2009-12-06Circular references truly work now, along with a test.Joshua Haberman
One simplification to come.
2009-12-05Add a test for circularly-linked descriptors.Joshua Haberman
The test currently triggers valgrind-detected memory errors.
2009-12-05Make defs refcounted, rename upb_context->upbsymtab.Joshua Haberman
There is currently a memory leak when type definitions form cycles. This will need to be dealt with.
2009-11-28Overhaul defs to derive from a common base.Joshua Haberman
2009-11-26Make upb_msgdef own all its data.Joshua Haberman
This is in anticipation of making upb_msgdef's easy to dup. This involved removing all traces of any descriptors from the defs.
2009-11-14Changed parse API to know about msgdefs.Joshua Haberman
This should make it both easier to use and easier to optimize, in exchange for a small amount of generality. In practice, any remotely normal case is still very natural.
2009-11-14Renamed upb_msg_fielddef -> upb_fielddef, upb_enum -> upb_enumdef.Joshua Haberman
2009-11-14Refactoring: split defs into their own file, move private parsing funcs out ↵Joshua Haberman
of .h file.
2009-09-26Use a status object for errors so a message can be returned.Joshua Haberman
Also delay deletion of subfields until the entire message is deleted.
2009-08-30Tests use valgrind, chdir in test.Joshua Haberman
2009-08-30Unit test comparing parsed results with proto2.Joshua Haberman
2009-08-28Incremental improvements to cbparser, and a test.Joshua Haberman
2009-08-15Finish upb_context thread-safety.Joshua Haberman
2009-08-15Add refcounting and thread-safety to message definitions.Joshua Haberman
2009-08-12Refactoring: unify upb_msg.Joshua Haberman
The cost is that a upb_msg will now always have an overhead of 2*sizeof(void*). This is comparable to proto2 overhead. The benefit is that upb_msg is now self-describing, and read-only algorithms can now operate on a upb_msg regardless of the memory-management scheme. Also, upb_array and upb_string now know inherently if they own their associated memory, and upb_array has a generic pointer for memory management purposes like upb_msg does.
2009-08-03Fix tests (and src) such that all tests pass again.Joshua Haberman
2009-08-01Added a proper prototype for upb_serialize.Joshua Haberman
2009-07-25Move parsing functions to header file in anticipation of code generation ↵Joshua Haberman
(want them inlined).
2009-07-23upb is fully self-hosting (except for text->descriptor)!Joshua Haberman
2009-07-21Update test_table to new table API.Joshua Haberman
2009-07-21Fix tests and the build (though a few tests are failing).Joshua Haberman
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback