#include "test/gtest_and_gmock.h"
#include "perfetto/ext/base/hash.h"
#include "perfetto/protozero/packed_repeated_fields.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "src/protozero/filtering/filter_bytecode_common.h"
#include "src/protozero/filtering/filter_bytecode_parser.h"
namespace protozero {
namespace {
bool LoadBytecode(FilterBytecodeParser* parser,
std::initializer_list<uint32_t> bytecode) { … }
TEST(FilterBytecodeParserTest, EomHandling) { … }
TEST(FilterBytecodeParserTest, ParserSimpleFields) { … }
TEST(FilterBytecodeParserTest, ParserSimpleRanges) { … }
TEST(FilterBytecodeParserTest, ParserSimpleFieldsAndRanges) { … }
TEST(FilterBytecodeParserTest, ParserNestedMessages) { … }
}
}