diff options
author | Bo Yang <teboring@google.com> | 2015-04-27 14:47:04 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2015-04-27 14:47:04 -0700 |
commit | 9a121853236a8c77693f14d21d27987e5832176a (patch) | |
tree | 5caaf64aed5ae55d83d104027e1a8272ad516f9f /src/google | |
parent | d6c9f644ac62ec83196a75a47655a33a87875628 (diff) | |
download | protobuf-9a121853236a8c77693f14d21d27987e5832176a.tar.gz protobuf-9a121853236a8c77693f14d21d27987e5832176a.tar.bz2 protobuf-9a121853236a8c77693f14d21d27987e5832176a.zip |
Handle un-handled cases of TestOneof2 in unittest
Change-Id: I8f082ee3117ed873ab472a539867ff7cae58e8fd
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_unittest.cc b/src/google/protobuf/compiler/cpp/cpp_unittest.cc index cc758cf5..9d14a924 100644 --- a/src/google/protobuf/compiler/cpp/cpp_unittest.cc +++ b/src/google/protobuf/compiler/cpp/cpp_unittest.cc @@ -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; } |