From 9116c697f845e7ca215628029800c36f7dfbfaee Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 15 Jan 2010 18:12:28 -0800 Subject: upb_parser -> upb_decoder --- tests/test_vs_proto2.cc | 4 ++-- tests/tests.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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 #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 #include #include -#include "upb_parse.c" +#include "upb_decoder.c" #include "upb_def.h" int num_assertions = 0; -- cgit v1.2.3