#include "gtest/gtest.h"
#include "src/google/protobuf/test_messages_proto2.upb.h"
#include "src/google/protobuf/test_messages_proto3.upb.h"
#include "upb/test.upb.h"
#include "upb/upb.hpp"
Go to the source code of this file.
Macros | |
#define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
Functions | |
static void | check_int32_map_empty (protobuf_test_messages_proto3_TestAllTypesProto3 *msg) |
static void | check_int32_map_one_entry (protobuf_test_messages_proto3_TestAllTypesProto3 *msg) |
static void | check_string_map_empty (protobuf_test_messages_proto3_TestAllTypesProto3 *msg) |
static void | check_string_map_one_entry (protobuf_test_messages_proto3_TestAllTypesProto3 *msg) |
static void | decrement_int (void *ptr) |
TEST (GeneratedCode, ArenaDecode) | |
TEST (GeneratedCode, ArenaFuse) | |
TEST (GeneratedCode, ArenaUnaligned) | |
TEST (GeneratedCode, Bytes) | |
TEST (GeneratedCode, Extension) | |
TEST (GeneratedCode, FuseWithInitialBlock) | |
TEST (GeneratedCode, Int32Map) | |
TEST (GeneratedCode, Issue9440) | |
TEST (GeneratedCode, NullDecodeBuffer) | |
TEST (GeneratedCode, RepeatedClear) | |
TEST (GeneratedCode, ScalarsProto2) | |
TEST (GeneratedCode, ScalarsProto3) | |
TEST (GeneratedCode, StatusTruncation) | |
TEST (GeneratedCode, StringDoubleMap) | |
TEST (GeneratedCode, StringMap) | |
TEST (GeneratedCode, TestRepeated) | |
TEST (GeneratedCode, UTF8) | |
static void * | test_allocfunc (upb_alloc *alloc, void *ptr, size_t oldsize, size_t size) |
Variables | |
upb_alloc | test_alloc = {&test_allocfunc} |
const int32_t | test_int32 = 10 |
const int32_t | test_int32_2 = -20 |
const int32_t | test_int32_3 = 30 |
const int32_t | test_int32_4 = -40 |
const char | test_str [] = "abcdefg" |
const char | test_str2 [] = "12345678910" |
const char | test_str3 [] = "rstlnezxcvbnm" |
const char | test_str4 [] = "just another test string" |
const upb_StringView | test_str_view = {test_str, sizeof(test_str) - 1} |
const upb_StringView | test_str_view2 = {test_str2, sizeof(test_str2) - 1} |
const upb_StringView | test_str_view3 = {test_str3, sizeof(test_str3) - 1} |
const upb_StringView | test_str_view4 = {test_str4, sizeof(test_str4) - 1} |
|
static |
Definition at line 676 of file test_generated_code.cc.
|
static |
Definition at line 688 of file test_generated_code.cc.
|
static |
Definition at line 528 of file test_generated_code.cc.
|
static |
Definition at line 541 of file test_generated_code.cc.
|
static |
Definition at line 867 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
ArenaDecode | |||
) |
Definition at line 929 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
ArenaFuse | |||
) |
Definition at line 872 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
ArenaUnaligned | |||
) |
Definition at line 962 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
Bytes | |||
) |
Definition at line 361 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
Extension | |||
) |
Definition at line 425 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
FuseWithInitialBlock | |||
) |
Definition at line 908 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
Int32Map | |||
) |
Definition at line 728 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
Issue9440 | |||
) |
Definition at line 816 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
NullDecodeBuffer | |||
) |
Definition at line 826 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
RepeatedClear | |||
) |
Definition at line 484 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
ScalarsProto2 | |||
) |
Definition at line 139 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
ScalarsProto3 | |||
) |
Definition at line 58 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
StatusTruncation | |||
) |
Definition at line 838 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
StringDoubleMap | |||
) |
Definition at line 582 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
StringMap | |||
) |
Definition at line 607 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
TestRepeated | |||
) |
Definition at line 797 of file test_generated_code.cc.
TEST | ( | GeneratedCode | , |
UTF8 | |||
) |
Definition at line 505 of file test_generated_code.cc.
|
static |
Definition at line 902 of file test_generated_code.cc.
upb_alloc test_alloc = {&test_allocfunc} |
Definition at line 906 of file test_generated_code.cc.
Definition at line 53 of file test_generated_code.cc.
Definition at line 54 of file test_generated_code.cc.
Definition at line 55 of file test_generated_code.cc.
Definition at line 56 of file test_generated_code.cc.
const char test_str[] = "abcdefg" |
Definition at line 43 of file test_generated_code.cc.
const char test_str2[] = "12345678910" |
Definition at line 44 of file test_generated_code.cc.
const char test_str3[] = "rstlnezxcvbnm" |
Definition at line 45 of file test_generated_code.cc.
Definition at line 46 of file test_generated_code.cc.
const upb_StringView test_str_view = {test_str, sizeof(test_str) - 1} |
Definition at line 48 of file test_generated_code.cc.
const upb_StringView test_str_view2 = {test_str2, sizeof(test_str2) - 1} |
Definition at line 49 of file test_generated_code.cc.
const upb_StringView test_str_view3 = {test_str3, sizeof(test_str3) - 1} |
Definition at line 50 of file test_generated_code.cc.
const upb_StringView test_str_view4 = {test_str4, sizeof(test_str4) - 1} |
Definition at line 51 of file test_generated_code.cc.