summaryrefslogtreecommitdiff
path: root/grpc
diff options
context:
space:
mode:
authorDerek Bailey <dbaileychess@gmail.com>2020-03-02 10:15:23 -0800
committerGitHub <noreply@github.com>2020-03-02 10:15:23 -0800
commit6ff1898413a56577bd2e9abd8280a79b1880bd53 (patch)
tree121c2b564096a79ff8097fe821f25a33a8a43eec /grpc
parentc9a30c9ca28a6396455dd8be479f5a5edb412e62 (diff)
downloadflatbuffers-6ff1898413a56577bd2e9abd8280a79b1880bd53.tar.gz
flatbuffers-6ff1898413a56577bd2e9abd8280a79b1880bd53.tar.bz2
flatbuffers-6ff1898413a56577bd2e9abd8280a79b1880bd53.zip
Added --filename-suffix and --filename-ext to flatc (#5778)
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Added --filename-suffix and --filename-ext to flatc * Fixed typo and added example generation of suffix and extension for C++ * Removed extra ; * Removed clang-format block from a region that didn't need it. Fixed an auto format of another clang-format block * Added docs, fixed pointer alignment, removed suffix test file
Diffstat (limited to 'grpc')
-rw-r--r--grpc/tests/message_builder_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/grpc/tests/message_builder_test.cpp b/grpc/tests/message_builder_test.cpp
index 906fe682..3ce33a98 100644
--- a/grpc/tests/message_builder_test.cpp
+++ b/grpc/tests/message_builder_test.cpp
@@ -252,8 +252,8 @@ void builder_move_ctor_conversion_before_finish_test() {
auto stat_offset = CreateStat(fbb, fbb.CreateString("SomeId"), 0, 0);
flatbuffers::grpc::MessageBuilder mb(std::move(fbb));
auto monster_offset =
- CreateMonster(mb, 0, 150, 100, mb.CreateString(m1_name()), 0, m1_color(),
- Any_NONE, 0, 0, 0, 0, 0, 0, stat_offset);
+ CreateMonster(mb, 0, 150, 100, mb.CreateString(m1_name()), 0,
+ m1_color(), Any_NONE, 0, 0, 0, 0, 0, 0, stat_offset);
mb.Finish(monster_offset);
{
auto mon = flatbuffers::GetRoot<Monster>(mb.GetBufferPointer());
@@ -262,7 +262,7 @@ void builder_move_ctor_conversion_before_finish_test() {
TEST_EQ_STR(mon->name()->c_str(), m1_name().c_str());
TEST_EQ(mon->color(), m1_color());
}
- TEST_EQ(1, MyGame::Example::Color_Red);
+ TEST_EQ(1, MyGame::Example::Color_Red);
TEST_EQ(1, m1_color());
TEST_ASSERT_FUNC(release_n_verify(mb, m1_name(), m1_color()));
TEST_EQ_FUNC(fbb.GetSize(), 0);
@@ -302,8 +302,8 @@ void builder_move_assign_conversion_before_finish_test() {
auto stat_offset = CreateStat(fbb, fbb.CreateString("SomeId"), 0, 0);
mb = std::move(fbb);
auto monster_offset =
- CreateMonster(mb, 0, 150, 100, mb.CreateString(m1_name()), 0, m1_color(),
- Any_NONE, 0, 0, 0, 0, 0, 0, stat_offset);
+ CreateMonster(mb, 0, 150, 100, mb.CreateString(m1_name()), 0,
+ m1_color(), Any_NONE, 0, 0, 0, 0, 0, 0, stat_offset);
mb.Finish(monster_offset);
TEST_ASSERT_FUNC(release_n_verify(mb, m1_name(), m1_color()));
TEST_EQ_FUNC(fbb.GetSize(), 0);