summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-01-15 18:12:28 -0800
committerJoshua Haberman <joshua@reverberate.org>2010-01-15 18:12:28 -0800
commit9116c697f845e7ca215628029800c36f7dfbfaee (patch)
treef5f416d54f9fb1034abc40022855dbc2fbec61a7 /tests
parent57d6353a3c225cbfa523d7f15cef2691e8806741 (diff)
upb_parser -> upb_decoder
Diffstat (limited to 'tests')
-rw-r--r--tests/test_vs_proto2.cc4
-rw-r--r--tests/tests.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc
index 4356b05..6cb37b7 100644
--- a/tests/test_vs_proto2.cc
+++ b/tests/test_vs_proto2.cc
@@ -6,7 +6,7 @@
#include <google/protobuf/descriptor.h>
#include "upb_data.h"
#include "upb_def.h"
-#include "upb_parse.h"
+#include "upb_decoder.h"
int num_assertions = 0;
#define ASSERT(expr) do { \
@@ -171,7 +171,7 @@ void parse_and_compare(MESSAGE_CIDENT *proto2_msg,
// Parse to both proto2 and upb.
ASSERT(proto2_msg->ParseFromArray(upb_string_getrobuf(str), upb_strlen(str)));
struct upb_status status = UPB_STATUS_INIT;
- upb_msg_parsestr(upb_msg, upb_md, str, &status);
+ upb_msg_decodestr(upb_msg, upb_md, str, &status);
ASSERT(upb_ok(&status));
compare(*proto2_msg, upb_msg, upb_md);
}
diff --git a/tests/tests.c b/tests/tests.c
index cd7a4f0..03026a6 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -3,7 +3,7 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
-#include "upb_parse.c"
+#include "upb_decoder.c"
#include "upb_def.h"
int num_assertions = 0;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback