#include "upb/util/def_to_proto.h"
#include "gmock/gmock.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/descriptor.upbdefs.h"
#include "google/protobuf/dynamic_message.h"
#include "google/protobuf/util/message_differencer.h"
#include "gtest/gtest.h"
#include "upb/def.hpp"
#include "upb/upb.hpp"
#include "upb/util/def_to_proto_test.upbdefs.h"
Go to the source code of this file.
Functions | |
const google::protobuf::Descriptor * | AddMessageDescriptor (upb::MessageDefPtr msgdef, google::protobuf::DescriptorPool *pool) |
void | CheckFile (const upb::FileDefPtr file, const google_protobuf_FileDescriptorProto *proto) |
MATCHER_P2 (EqualsUpbProto, proto, msgdef_func, negation ? "are not equal" :"are equal") | |
TEST (DefToProto, Test) | |
TEST (DefToProto, TestRuntimeReflection) | |
std::unique_ptr< google::protobuf::Message > | ToProto (const upb_Message *msg, const upb_MessageDef *msgdef, const google::protobuf::Descriptor *desc, google::protobuf::MessageFactory *factory) |
const google::protobuf::Descriptor* AddMessageDescriptor | ( | upb::MessageDefPtr | msgdef, |
google::protobuf::DescriptorPool * | pool | ||
) |
Definition at line 41 of file def_to_proto_test.cc.
void CheckFile | ( | const upb::FileDefPtr | file, |
const google_protobuf_FileDescriptorProto * | proto | ||
) |
Definition at line 104 of file def_to_proto_test.cc.
Definition at line 78 of file def_to_proto_test.cc.
TEST | ( | DefToProto | , |
Test | |||
) |
Definition at line 116 of file def_to_proto_test.cc.
TEST | ( | DefToProto | , |
TestRuntimeReflection | |||
) |
Definition at line 130 of file def_to_proto_test.cc.
std::unique_ptr<google::protobuf::Message> ToProto | ( | const upb_Message * | msg, |
const upb_MessageDef * | msgdef, | ||
const google::protobuf::Descriptor * | desc, | ||
google::protobuf::MessageFactory * | factory | ||
) |
Definition at line 60 of file def_to_proto_test.cc.