Classes | Functions | Variables
conformance_upb.c File Reference
#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"
Include dependency graph for conformance_upb.c:

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
 

Function Documentation

◆ CheckedRead()

bool CheckedRead ( int  fd,
void *  buf,
size_t  len 
)

Definition at line 55 of file conformance_upb.c.

◆ CheckedWrite()

void CheckedWrite ( int  fd,
const void *  buf,
size_t  len 
)

Definition at line 74 of file conformance_upb.c.

◆ debug_print()

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.

◆ DoTest()

void DoTest ( const ctx c)

Definition at line 232 of file conformance_upb.c.

◆ DoTestIo()

bool DoTestIo ( upb_DefPool symtab)

Definition at line 269 of file conformance_upb.c.

◆ main()

int main ( void  )

Definition at line 323 of file conformance_upb.c.

◆ parse_input()

bool parse_input ( upb_Message msg,
const upb_MessageDef m,
const ctx c 
)

Definition at line 190 of file conformance_upb.c.

◆ parse_json()

bool parse_json ( upb_Message msg,
const upb_MessageDef m,
const ctx c 
)

Definition at line 135 of file conformance_upb.c.

◆ parse_proto()

bool parse_proto ( upb_Message msg,
const upb_MessageDef m,
const ctx c 
)

Definition at line 88 of file conformance_upb.c.

◆ serialize_json()

void serialize_json ( const upb_Message msg,
const upb_MessageDef m,
const ctx c 
)

Definition at line 161 of file conformance_upb.c.

◆ serialize_proto()

void serialize_proto ( const upb_Message msg,
const upb_MessageDef m,
const ctx c 
)

Definition at line 102 of file conformance_upb.c.

◆ serialize_text()

void serialize_text ( const upb_Message msg,
const upb_MessageDef m,
const ctx c 
)

Definition at line 116 of file conformance_upb.c.

◆ write_output()

void write_output ( const upb_Message msg,
const upb_MessageDef m,
const ctx c 
)

Definition at line 208 of file conformance_upb.c.

Variable Documentation

◆ test_count

int test_count = 0

Definition at line 52 of file conformance_upb.c.

◆ verbose

bool verbose = false

Definition at line 53 of file conformance_upb.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:08