1 
2 #include "baz_generated.h"
3 #include "root.h"
4 #include "root_generated.h"
5 
6 namespace testing {
7 
8 class BazTestDataClass : public DumpsysTestDataClass {
9  public:
GetTable(flatbuffers::FlatBufferBuilder & fb_builder)10   TableAddFunction GetTable(flatbuffers::FlatBufferBuilder& fb_builder) override {
11     auto sub_name_private = fb_builder.CreateString("Baz Subtable Private");
12     auto sub_name_opaque = fb_builder.CreateString("Baz Subtable Opaque");
13     auto sub_name_anonymized = fb_builder.CreateString("Baz Subtable Anonymized");
14     auto sub_name_any = fb_builder.CreateString("Baz Subtable Any");
15 
16     auto private_subtable = CreateBazSubTablePrivate(fb_builder, 1, sub_name_private);
17     auto opaque_subtable = CreateBazSubTableOpaque(fb_builder, 1, sub_name_opaque);
18     auto anonymized_subtable = CreateBazSubTableAnonymized(fb_builder, 1, sub_name_anonymized);
19     auto any_subtable = CreateBazSubTableAny(fb_builder, 1, 2, 3, 4, sub_name_any);
20 
21     BazTestSchemaBuilder builder(fb_builder);
22     builder.add_sub_table_private(private_subtable);
23     builder.add_sub_table_opaque(opaque_subtable);
24     builder.add_sub_table_anonymized(anonymized_subtable);
25     builder.add_sub_table_any(any_subtable);
26     auto baz_table = builder.Finish();
27 
28     return [baz_table](DumpsysTestDataRootBuilder* builder) { builder->add_baz_module_data(baz_table); };
29   }
30 };
31 
32 }  // namespace testing
33