diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-01-15 18:12:28 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-01-15 18:12:28 -0800 |
commit | 9116c697f845e7ca215628029800c36f7dfbfaee (patch) | |
tree | f5f416d54f9fb1034abc40022855dbc2fbec61a7 /tests/test_vs_proto2.cc | |
parent | 57d6353a3c225cbfa523d7f15cef2691e8806741 (diff) |
upb_parser -> upb_decoder
Diffstat (limited to 'tests/test_vs_proto2.cc')
-rw-r--r-- | tests/test_vs_proto2.cc | 4 |
1 files changed, 2 insertions, 2 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); } |