mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
47 lines
1.9 KiB
C++
47 lines
1.9 KiB
C++
#ifndef TESTS_PROTO_TEST_H
|
|
#define TESTS_PROTO_TEST_H
|
|
|
|
#include <string>
|
|
|
|
#include "flatbuffers/idl.h"
|
|
|
|
namespace flatbuffers {
|
|
namespace tests {
|
|
|
|
void RunTest(const flatbuffers::IDLOptions& opts, const std::string& proto_path,
|
|
const std::string& proto_file, const std::string& golden_file,
|
|
const std::string import_proto_file = {});
|
|
void proto_test(const std::string& proto_path, const std::string& proto_file);
|
|
void proto_test_union(const std::string& proto_path,
|
|
const std::string& proto_file);
|
|
void proto_test_union_suffix(const std::string& proto_path,
|
|
const std::string& proto_file);
|
|
void proto_test_include(const std::string& proto_path,
|
|
const std::string& proto_file,
|
|
const std::string& import_proto_file);
|
|
void proto_test_include_union(const std::string& proto_path,
|
|
const std::string& proto_file,
|
|
const std::string& import_proto_file);
|
|
|
|
void proto_test_id(const std::string& proto_path,
|
|
const std::string& proto_file);
|
|
void proto_test_union_id(const std::string& proto_path,
|
|
const std::string& proto_file);
|
|
void proto_test_union_suffix_id(const std::string& proto_path,
|
|
const std::string& proto_file);
|
|
void proto_test_include_id(const std::string& proto_path,
|
|
const std::string& proto_file,
|
|
const std::string& import_proto_file);
|
|
void proto_test_include_union_id(const std::string& proto_path,
|
|
const std::string& proto_file,
|
|
const std::string& import_proto_file);
|
|
|
|
void ParseCorruptedProto(const std::string& proto_path);
|
|
void ParseProtoTest(const std::string& tests_data_path);
|
|
void ParseProtoBufAsciiTest();
|
|
|
|
} // namespace tests
|
|
} // namespace flatbuffers
|
|
|
|
#endif
|