From fd184f0df2e5e428873eadfaf1ae829d2e4d8e51 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 22 Feb 2011 01:54:31 -0800 Subject: 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. --- tests/test_vs_proto2.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/test_vs_proto2.cc') 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 #include #include #include -#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 -- cgit v1.2.3