Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dproto3_arena_unittest.cc120 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
121 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
122 ExpectAllFieldsSet(*arena_message); in TEST()
130 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
131 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
132 ExpectAllFieldsSet(*arena_message); in TEST()
137 arena_message->GetReflection()->MutableUnknownFields(arena_message); in TEST()
141 ASSERT_NE(original.ByteSize(), arena_message->ByteSize()); in TEST()
143 arena_message->GetReflection()->GetUnknownFields(*arena_message).empty()); in TEST()
160 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
[all …]
Dproto3_arena_lite_unittest.cc118 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
119 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
120 ExpectAllFieldsSet(*arena_message); in TEST()
137 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
140 arena_message->set_allocated_optional_nested_message(nested); in TEST()
141 EXPECT_EQ(118, arena_message->optional_nested_message().bb()); in TEST()
146 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
147 arena_message->mutable_optional_nested_message()->set_bb(118); in TEST()
149 arena_message->release_optional_nested_message()); in TEST()
Darena_unittest.cc306 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() local
307 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
308 TestUtil::ExpectAllFieldsSet(*arena_message); in TEST()
312 strlen(arena_message->optional_string().c_str())); in TEST()
322 TestEmptyMessage* arena_message = in TEST() local
324 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
327 copied.ParseFromString(arena_message->SerializeAsString()); in TEST()
331 arena_message = Arena::CreateMessage<TestEmptyMessage>(&arena); in TEST()
332 arena_message->mutable_unknown_fields()->AddVarint( in TEST()
335 copied.ParseFromString(arena_message->SerializeAsString()); in TEST()
[all …]
Dmessage_unittest.inc405 UNITTEST::TestAllTypes* arena_message =
407 EXPECT_FALSE(arena_message->ParseFromString(invalid_string_data));
408 arena_message->Clear();
409 EXPECT_EQ("", arena_message->optional_string());
Dunittest_no_arena.proto201 optional proto2_arena_unittest.ArenaMessage arena_message = 1; field