diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-22 01:54:31 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-22 01:54:31 -0800 |
commit | fd184f0df2e5e428873eadfaf1ae829d2e4d8e51 (patch) | |
tree | 19c4a1d9099f04c74de60eb4d8149ea1b5d930a0 /tests/test_vs_proto2.cc | |
parent | 0c6786c6fad563f181e66c90df2a74597ce6d18b (diff) |
Major work on Lua extension and default values.
Default values are now supported, and the Lua extension
can now create and modify individual protobuf objects.
Diffstat (limited to 'tests/test_vs_proto2.cc')
-rw-r--r-- | tests/test_vs_proto2.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc index 1839123..f3c54b4 100644 --- a/tests/test_vs_proto2.cc +++ b/tests/test_vs_proto2.cc @@ -1,20 +1,20 @@ +/* + * upb - a minimalist implementation of protocol buffers. + * + * A test that verifies that our results are identical to proto2 for a + * given proto type and input protobuf. + * + * Copyright (c) 2011 Joshua Haberman. See LICENSE for details. + */ -#undef NDEBUG /* ensure tests always assert. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <google/protobuf/descriptor.h> -#include "upb_decoder.h" +#include "upb_test.h" #include "upb_def.h" #include "upb_glue.h" #include "upb_msg.h" -#include "upb_strstream.h" - -int num_assertions = 0; -#define ASSERT(expr) do { \ - ++num_assertions; \ - assert(expr); \ - } while(0) #include MESSAGE_HFILE |