Commit 26c91af8 authored by Jason Choy's avatar Jason Choy

Added calls to all generated accessors to test name override

parent 644f9729
......@@ -1652,13 +1652,19 @@ TEST(Encoding, HasEmptyStructList) {
}
TEST(Encoding, NameAnnotation) {
EXPECT_EQ(2, static_cast<uint16_t>(test::RenamedStruct::RenamedEnum::QUX));
MallocMessageBuilder message;
auto root = message.initRoot<test::RenamedStruct>();
EXPECT_FALSE(root.isGoodFieldName());
root.setGoodFieldName(true);
root.setAnotherGoodFieldName(test::RenamedStruct::RenamedEnum::QUX);
EXPECT_EQ(true, root.getGoodFieldName());
EXPECT_TRUE(root.isGoodFieldName());
EXPECT_EQ(2, static_cast<uint16_t>(test::RenamedStruct::RenamedEnum::QUX));
root.setAnotherGoodFieldName(test::RenamedStruct::RenamedEnum::QUX);
EXPECT_EQ(test::RenamedStruct::RenamedEnum::QUX, root.getAnotherGoodFieldName());
}
} // namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment