Home
last modified time | relevance | path

Searched refs:arena_message (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/src/google/protobuf/
Dproto3_arena_unittest.cc127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
128 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
129 ExpectAllFieldsSet(*arena_message); in TEST()
137 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
138 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
139 ExpectAllFieldsSet(*arena_message); in TEST()
144 arena_message->GetReflection()->MutableUnknownFields(arena_message); in TEST()
148 ASSERT_EQ(original.ByteSize(), arena_message->ByteSize()); in TEST()
150 arena_message->GetReflection()->GetUnknownFields(*arena_message).empty()); in TEST()
167 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
[all …]
Darena_unittest.cc251 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
252 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
253 TestUtil::ExpectAllFieldsSet(*arena_message); in TEST()
257 strlen(arena_message->optional_string().c_str())); in TEST()
267 TestEmptyMessage* arena_message = in TEST() local
269 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
272 copied.ParseFromString(arena_message->SerializeAsString()); in TEST()
276 arena_message = Arena::CreateMessage<TestEmptyMessage>(&arena); in TEST()
277 arena_message->mutable_unknown_fields()->AddVarint( in TEST()
280 copied.ParseFromString(arena_message->SerializeAsString()); in TEST()
[all …]
Dproto3_arena_lite_unittest.cc127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
128 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
129 ExpectAllFieldsSet(*arena_message); in TEST()
146 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
149 arena_message->set_allocated_optional_nested_message(nested); in TEST()
150 EXPECT_EQ(118, arena_message->optional_nested_message().bb()); in TEST()
155 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
156 arena_message->mutable_optional_nested_message()->set_bb(118); in TEST()
158 arena_message->release_optional_nested_message()); in TEST()
Dunittest_no_arena.proto201 optional proto2_arena_unittest.ArenaMessage arena_message = 1; field