...

Text file src/github.com/google/flatbuffers/tests/proto_test.h

Documentation: github.com/google/flatbuffers/tests

     1#ifndef TESTS_PROTO_TEST_H
     2#define TESTS_PROTO_TEST_H
     3
     4#include "flatbuffers/idl.h"
     5
     6#include <string>
     7
     8namespace flatbuffers {
     9namespace tests {
    10
    11void RunTest(const flatbuffers::IDLOptions &opts, const std::string &proto_path, const std::string &proto_file,
    12        const std::string &golden_file, const std::string import_proto_file = {});
    13void proto_test(const std::string &proto_path, const std::string &proto_file);
    14void proto_test_union(const std::string &proto_path, const std::string &proto_file);
    15void proto_test_union_suffix(const std::string &proto_path, const std::string &proto_file);
    16void proto_test_include(const std::string &proto_path, const std::string &proto_file, const std::string &import_proto_file);
    17void proto_test_include_union(const std::string &proto_path, const std::string &proto_file, const std::string &import_proto_file);
    18
    19void proto_test_id(const std::string &proto_path, const std::string &proto_file);
    20void proto_test_union_id(const std::string &proto_path, const std::string &proto_file);
    21void proto_test_union_suffix_id(const std::string &proto_path, const std::string &proto_file);
    22void proto_test_include_id(const std::string &proto_path, const std::string &proto_file, const std::string &import_proto_file);
    23void proto_test_include_union_id(const std::string &proto_path, const std::string &proto_file, const std::string &import_proto_file);
    24
    25void ParseCorruptedProto(const std::string &proto_path);
    26void ParseProtoTest(const std::string& tests_data_path);
    27void ParseProtoBufAsciiTest();
    28
    29}  // namespace tests
    30}  // namespace flatbuffers
    31
    32#endif

View as plain text