summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2023-05-08 13:54:24 -0700
committerDerek Bailey <derekbailey@google.com>2023-05-08 13:54:24 -0700
commitd9f2cc2d623d33acef9808e7f1af357fb8833684 (patch)
tree3d89a2df5d5ac50e51b3b4c00ec49b6eb9cfcaed
parent197ae6cc7e52c8370b32d0b203a0c603eacc4f07 (diff)
downloadflatbuffers-d9f2cc2d623d33acef9808e7f1af357fb8833684.tar.gz
flatbuffers-d9f2cc2d623d33acef9808e7f1af357fb8833684.tar.bz2
flatbuffers-d9f2cc2d623d33acef9808e7f1af357fb8833684.zip
add key_field to compiled tests
-rw-r--r--CMakeLists.txt1
-rw-r--r--tests/key_field/key_field_sample_generated.h8
2 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 885984db..e0b3248a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -526,6 +526,7 @@ if(FLATBUFFERS_BUILD_TESTS)
compile_schema_for_test(tests/alignment_test.fbs "${FLATC_OPT_COMP}")
compile_schema_for_test(tests/native_inline_table_test.fbs "${FLATC_OPT_COMP}")
compile_schema_for_test(tests/native_type_test.fbs "${FLATC_OPT}")
+ compile_schema_for_test(tests/key_field/key_field_sample.fbs "${FLATC_OPT_COMP}")
if(FLATBUFFERS_CODE_SANITIZE)
add_fsanitize_to_target(flattests ${FLATBUFFERS_CODE_SANITIZE})
diff --git a/tests/key_field/key_field_sample_generated.h b/tests/key_field/key_field_sample_generated.h
index aeafd082..0ce5709b 100644
--- a/tests/key_field/key_field_sample_generated.h
+++ b/tests/key_field/key_field_sample_generated.h
@@ -1006,16 +1006,16 @@ inline void FinishSizePrefixedFooTableBuffer(
fbb.FinishSizePrefixed(root);
}
-inline flatbuffers::unique_ptr<keyfield::sample::FooTableT> UnPackFooTable(
+inline std::unique_ptr<keyfield::sample::FooTableT> UnPackFooTable(
const void *buf,
const ::flatbuffers::resolver_function_t *res = nullptr) {
- return flatbuffers::unique_ptr<keyfield::sample::FooTableT>(GetFooTable(buf)->UnPack(res));
+ return std::unique_ptr<keyfield::sample::FooTableT>(GetFooTable(buf)->UnPack(res));
}
-inline flatbuffers::unique_ptr<keyfield::sample::FooTableT> UnPackSizePrefixedFooTable(
+inline std::unique_ptr<keyfield::sample::FooTableT> UnPackSizePrefixedFooTable(
const void *buf,
const ::flatbuffers::resolver_function_t *res = nullptr) {
- return flatbuffers::unique_ptr<keyfield::sample::FooTableT>(GetSizePrefixedFooTable(buf)->UnPack(res));
+ return std::unique_ptr<keyfield::sample::FooTableT>(GetSizePrefixedFooTable(buf)->UnPack(res));
}
} // namespace sample