summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-14 15:49:21 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-14 15:49:21 -0800
commit7cde43ea0abf2022a0c800c7af1d5f1ec2033bea (patch)
tree22961315d9b00831a0384e9f1fc0f88b8b76aa6e /tests
parente252432a4176b6524e8c064673459e947ba11cb7 (diff)
Renamed upb_msg_fielddef -> upb_fielddef, upb_enum -> upb_enumdef.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_vs_proto2.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc
index 71dc1da..8674d58 100644
--- a/tests/test_vs_proto2.cc
+++ b/tests/test_vs_proto2.cc
@@ -24,7 +24,7 @@ void compare(const google::protobuf::Message& proto2_msg,
void compare_arrays(const google::protobuf::Reflection *r,
const google::protobuf::Message& proto2_msg,
const google::protobuf::FieldDescriptor *proto2_f,
- struct upb_msg *upb_msg, struct upb_msg_fielddef *upb_f)
+ struct upb_msg *upb_msg, struct upb_fielddef *upb_f)
{
struct upb_array *arr = *upb_msg_getptr(upb_msg, upb_f).arr;
ASSERT(arr->len == (upb_arraylen_t)r->FieldSize(proto2_msg, proto2_f));
@@ -78,7 +78,7 @@ void compare_arrays(const google::protobuf::Reflection *r,
void compare_values(const google::protobuf::Reflection *r,
const google::protobuf::Message& proto2_msg,
const google::protobuf::FieldDescriptor *proto2_f,
- struct upb_msg *upb_msg, struct upb_msg_fielddef *upb_f)
+ struct upb_msg *upb_msg, struct upb_fielddef *upb_f)
{
union upb_value_ptr p = upb_msg_getptr(upb_msg, upb_f);
switch(upb_f->type) {
@@ -134,7 +134,7 @@ void compare(const google::protobuf::Message& proto2_msg,
ASSERT((uint32_t)d->field_count() == def->num_fields);
for(uint32_t i = 0; i < def->num_fields; i++) {
- struct upb_msg_fielddef *upb_f = &def->fields[i];
+ struct upb_fielddef *upb_f = &def->fields[i];
struct google_protobuf_FieldDescriptorProto *upb_fd =
upb_msg_field_descriptor(upb_f, def);
const google::protobuf::FieldDescriptor *proto2_f =
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback