#include "upb/util/compare.h"
#include <stdint.h>
#include <string_view>
#include <vector>
#include "absl/strings/string_view.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
Go to the source code of this file.
Classes | |
struct | TypeAndValue |
struct | UnknownField |
union | UnknownFieldValue |
Typedefs | |
using | UnknownFields = std::vector< UnknownField > |
Functions | |
upb_UnknownCompareResult | CompareUnknown (UnknownFields uf1, UnknownFields uf2) |
upb_UnknownCompareResult | CompareUnknownWithMaxDepth (UnknownFields uf1, UnknownFields uf2, int max_depth) |
TypeAndValue | Delimited (const char *val) |
void | EncodeVarint (uint64_t val, std::string *str) |
TypeAndValue | Fixed32 (uint32_t val) |
TypeAndValue | Fixed64 (uint64_t val) |
TypeAndValue | Group (UnknownFields nested) |
TypeAndValue | LongVarint (uint64_t val) |
TEST (CompareTest, LongVarint) | |
TEST (CompareTest, MaxDepth) | |
TEST (CompareTest, UnknownFieldsOrdering) | |
TEST (CompareTest, UnknownFieldsReflexive) | |
std::string | ToBinaryPayload (const UnknownFields &fields) |
TypeAndValue | Varint (uint64_t val) |
using UnknownFields = std::vector<UnknownField> |
Definition at line 41 of file upb/upb/util/compare_test.cc.
|
strong |
Enumerator | |
---|---|
kVarint | |
kLongVarint | |
kDelimited | |
kFixed64 | |
kFixed32 | |
kGroup |
Definition at line 43 of file upb/upb/util/compare_test.cc.
upb_UnknownCompareResult CompareUnknown | ( | UnknownFields | uf1, |
UnknownFields | uf2 | ||
) |
Definition at line 171 of file upb/upb/util/compare_test.cc.
upb_UnknownCompareResult CompareUnknownWithMaxDepth | ( | UnknownFields | uf1, |
UnknownFields | uf2, | ||
int | max_depth | ||
) |
Definition at line 162 of file upb/upb/util/compare_test.cc.
TypeAndValue Delimited | ( | const char * | val | ) |
Definition at line 95 of file upb/upb/util/compare_test.cc.
void EncodeVarint | ( | uint64_t | val, |
std::string * | str | ||
) |
Definition at line 107 of file upb/upb/util/compare_test.cc.
TypeAndValue Fixed32 | ( | uint32_t | val | ) |
Definition at line 89 of file upb/upb/util/compare_test.cc.
TypeAndValue Fixed64 | ( | uint64_t | val | ) |
Definition at line 83 of file upb/upb/util/compare_test.cc.
TypeAndValue Group | ( | UnknownFields | nested | ) |
Definition at line 101 of file upb/upb/util/compare_test.cc.
TypeAndValue LongVarint | ( | uint64_t | val | ) |
Definition at line 77 of file upb/upb/util/compare_test.cc.
TEST | ( | CompareTest | , |
LongVarint | |||
) |
Definition at line 220 of file upb/upb/util/compare_test.cc.
TEST | ( | CompareTest | , |
MaxDepth | |||
) |
Definition at line 229 of file upb/upb/util/compare_test.cc.
TEST | ( | CompareTest | , |
UnknownFieldsOrdering | |||
) |
Definition at line 187 of file upb/upb/util/compare_test.cc.
TEST | ( | CompareTest | , |
UnknownFieldsReflexive | |||
) |
Definition at line 175 of file upb/upb/util/compare_test.cc.
std::string ToBinaryPayload | ( | const UnknownFields & | fields | ) |
Definition at line 116 of file upb/upb/util/compare_test.cc.
TypeAndValue Varint | ( | uint64_t | val | ) |
Definition at line 71 of file upb/upb/util/compare_test.cc.