Commit 9a121853 authored by Bo Yang's avatar Bo Yang

Handle un-handled cases of TestOneof2 in unittest

Change-Id: I8f082ee3117ed873ab472a539867ff7cae58e8fd
parent d6c9f644
......@@ -1392,6 +1392,12 @@ class OneofTest : public testing::Test {
case unittest::TestOneof2::kFooString:
EXPECT_TRUE(message.has_foo_string());
break;
case unittest::TestOneof2::kFooCord:
EXPECT_TRUE(message.has_foo_cord());
break;
case unittest::TestOneof2::kFooStringPiece:
EXPECT_TRUE(message.has_foo_string_piece());
break;
case unittest::TestOneof2::kFooBytes:
EXPECT_TRUE(message.has_foo_bytes());
break;
......@@ -1404,6 +1410,9 @@ class OneofTest : public testing::Test {
case unittest::TestOneof2::kFoogroup:
EXPECT_TRUE(message.has_foogroup());
break;
case unittest::TestOneof2::kFooLazyMessage:
EXPECT_TRUE(message.has_foo_lazy_message());
break;
case unittest::TestOneof2::FOO_NOT_SET:
break;
}
......
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