1 2 #include "foo_generated.h" 3 #include "root.h" 4 #include "root_generated.h" 5 6 namespace testing { 7 8 class FooTestDataClass : public DumpsysTestDataClass { 9 public: GetTable(flatbuffers::FlatBufferBuilder & fb_builder)10 TableAddFunction GetTable(flatbuffers::FlatBufferBuilder& fb_builder) override { 11 auto int_string = fb_builder.CreateString("123"); 12 auto float_string = fb_builder.CreateString("123.456"); 13 auto bool_string = fb_builder.CreateString("true"); 14 15 FooTestSchemaBuilder builder(fb_builder); 16 builder.add_foo_int_private(123); 17 builder.add_foo_int_opaque(123); 18 builder.add_foo_int_anonymized(123); 19 builder.add_foo_int_any(123); 20 builder.add_foo_int_string(int_string); 21 22 builder.add_foo_float_private(123.456); 23 builder.add_foo_float_opaque(123.456); 24 builder.add_foo_float_anonymized(123.456); 25 builder.add_foo_float_any(123.456); 26 builder.add_foo_float_string(float_string); 27 28 builder.add_foo_bool_private(true); 29 builder.add_foo_bool_opaque(true); 30 builder.add_foo_bool_anonymized(true); 31 builder.add_foo_bool_any(true); 32 builder.add_foo_bool_string(bool_string); 33 34 auto foo_table = builder.Finish(); 35 36 return [foo_table](DumpsysTestDataRootBuilder* builder) { builder->add_foo_module_data(foo_table); }; 37 } 38 }; 39 40 } // namespace testing 41