Home
last modified time | relevance | path

Searched refs:arena1_message (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/src/google/protobuf/
Darena_unittest.cc309 TestAllTypes* arena1_message; in TEST() local
314 arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST()
316 arena1_message->Swap(arena2_message); in TEST()
317 EXPECT_EQ(&arena1, arena1_message->GetArena()); in TEST()
321 arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST()
323 arena1_message->mutable_unknown_fields()->AddVarint(1, 42); in TEST()
324 arena1_message->Swap(arena2_message); in TEST()
325 EXPECT_EQ(&arena1, arena1_message->GetArena()); in TEST()
327 EXPECT_EQ(0, arena1_message->unknown_fields().field_count()); in TEST()
332 arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST()
[all …]
Dproto3_arena_lite_unittest.cc137 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST() local
139 arena1_message->Swap(arena2_message); in TEST()
140 EXPECT_EQ(&arena1, arena1_message->GetArena()); in TEST()
Dproto3_arena_unittest.cc158 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST() local
160 arena1_message->Swap(arena2_message); in TEST()
161 EXPECT_EQ(&arena1, arena1_message->GetArena()); in TEST()