#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "conformance/conformance.upb.h"
#include "conformance/conformance.upbdefs.h"
#include "src/google/protobuf/test_messages_proto2.upbdefs.h"
#include "src/google/protobuf/test_messages_proto3.upbdefs.h"
#include "upb/decode.h"
#include "upb/encode.h"
#include "upb/json_decode.h"
#include "upb/json_encode.h"
#include "upb/reflection.h"
#include "upb/text_encode.h"
#include "upb/port_def.inc"
Go to the source code of this file.
Classes | |
struct | ctx |
Functions | |
bool | CheckedRead (int fd, void *buf, size_t len) |
void | CheckedWrite (int fd, const void *buf, size_t len) |
void | debug_print (const char *label, const upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
void | DoTest (const ctx *c) |
bool | DoTestIo (upb_DefPool *symtab) |
int | main (void) |
bool | parse_input (upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
bool | parse_json (upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
bool | parse_proto (upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
void | serialize_json (const upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
void | serialize_proto (const upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
void | serialize_text (const upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
void | write_output (const upb_Message *msg, const upb_MessageDef *m, const ctx *c) |
Variables | |
int | test_count = 0 |
bool | verbose = false |
Definition at line 55 of file conformance_upb.c.
Definition at line 74 of file conformance_upb.c.
void debug_print | ( | const char * | label, |
const upb_Message * | msg, | ||
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 262 of file conformance_upb.c.
Definition at line 232 of file conformance_upb.c.
bool DoTestIo | ( | upb_DefPool * | symtab | ) |
Definition at line 269 of file conformance_upb.c.
int main | ( | void | ) |
Definition at line 323 of file conformance_upb.c.
bool parse_input | ( | upb_Message * | msg, |
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 190 of file conformance_upb.c.
bool parse_json | ( | upb_Message * | msg, |
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 135 of file conformance_upb.c.
bool parse_proto | ( | upb_Message * | msg, |
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 88 of file conformance_upb.c.
void serialize_json | ( | const upb_Message * | msg, |
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 161 of file conformance_upb.c.
void serialize_proto | ( | const upb_Message * | msg, |
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 102 of file conformance_upb.c.
void serialize_text | ( | const upb_Message * | msg, |
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 116 of file conformance_upb.c.
void write_output | ( | const upb_Message * | msg, |
const upb_MessageDef * | m, | ||
const ctx * | c | ||
) |
Definition at line 208 of file conformance_upb.c.
int test_count = 0 |
Definition at line 52 of file conformance_upb.c.
Definition at line 53 of file conformance_upb.c.