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