Home
last modified time | relevance | path

Searched refs:repeated_field (Results 1 – 22 of 22) sorted by relevance

/external/protobuf/src/google/protobuf/
Dpreserve_unknown_enum_test.cc206 const google::protobuf::FieldDescriptor* repeated_field = in TEST() local
208 enum_value = r->GetRepeatedEnum(message, repeated_field, 0); in TEST()
229 const google::protobuf::FieldDescriptor* repeated_field = in TEST() local
234 r->AddEnumValue(&message, repeated_field, 42); in TEST()
235 r->AddEnumValue(&message, repeated_field, 42); in TEST()
236 EXPECT_EQ(42, r->GetRepeatedEnumValue(message, repeated_field, 0)); in TEST()
237 r->SetRepeatedEnumValue(&message, repeated_field, 1, 84); in TEST()
238 EXPECT_EQ(84, r->GetRepeatedEnumValue(message, repeated_field, 1)); in TEST()
249 const google::protobuf::FieldDescriptor* repeated_field = in TEST() local
254 repeated_field->enum_type()->FindValueByName("BAR"); in TEST()
[all …]
Dunknown_field_set_unittest.cc414 const FieldDescriptor* repeated_field = in TEST_F() local
417 ASSERT_TRUE(repeated_field != NULL); in TEST_F()
426 unknown_fields->AddVarint(repeated_field->number(), TestAllTypes::FOO); in TEST_F()
427 unknown_fields->AddVarint(repeated_field->number(), 4); // not valid in TEST_F()
428 unknown_fields->AddVarint(repeated_field->number(), TestAllTypes::BAZ); in TEST_F()
429 unknown_fields->AddVarint(repeated_field->number(), 6); // not valid in TEST_F()
448 EXPECT_EQ(repeated_field->number(), unknown_fields.field(1).number()); in TEST_F()
452 EXPECT_EQ(repeated_field->number(), unknown_fields.field(2).number()); in TEST_F()
478 EXPECT_EQ(repeated_field->number(), unknown_fields.field(1).number()); in TEST_F()
482 EXPECT_EQ(repeated_field->number(), unknown_fields.field(2).number()); in TEST_F()
Dmap_field_inl.h405 RepeatedPtrField<EntryType>* repeated_field = in SyncRepeatedFieldWithMapNoLock() local
409 repeated_field->Clear(); in SyncRepeatedFieldWithMapNoLock()
417 repeated_field->AddAllocated(new_entry); in SyncRepeatedFieldWithMapNoLock()
431 RepeatedPtrField<EntryType>* repeated_field = in SyncMapWithRepeatedFieldNoLock() local
437 repeated_field->begin(); it != repeated_field->end(); ++it) { in SyncMapWithRepeatedFieldNoLock()
Darena_unittest.cc661 RepeatedPtrField<TestAllTypes> repeated_field; in TEST() local
662 EXPECT_TRUE(repeated_field.empty()); in TEST()
663 EXPECT_EQ(0, repeated_field.size()); in TEST()
666 repeated_field.AddCleared(cleared); in TEST()
667 EXPECT_TRUE(repeated_field.empty()); in TEST()
668 EXPECT_EQ(0, repeated_field.size()); in TEST()
671 RepeatedPtrField<TestAllTypes> repeated_field; in TEST() local
672 EXPECT_TRUE(repeated_field.empty()); in TEST()
673 EXPECT_EQ(0, repeated_field.size()); in TEST()
676 repeated_field.AddAllocated(cleared); in TEST()
[all …]
Dmap_field_test.cc275 RepeatedPtrField<Message>* repeated_field = stub->InternalRepeatedField(); in Expect() local
296 EXPECT_TRUE(repeated_field == NULL); in Expect()
298 EXPECT_EQ(repeated_size, repeated_field->size()); in Expect()
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc744 bool MessageDifferencer::IsMatch(const FieldDescriptor* repeated_field, in IsMatch() argument
751 if (repeated_field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in IsMatch()
753 *message1, *message2, repeated_field, index1, index2, in IsMatch()
766 *message1, *message2, repeated_field, index1, index2, in IsMatch()
772 reflection1->GetRepeatedMessage(*message1, repeated_field, index1); in IsMatch()
774 reflection2->GetRepeatedMessage(*message2, repeated_field, index2); in IsMatch()
776 specific_field.field = repeated_field; in IsMatch()
789 const FieldDescriptor* repeated_field, in CompareRepeatedField() argument
794 const int count1 = reflection1->FieldSize(message1, repeated_field); in CompareRepeatedField()
795 const int count2 = reflection2->FieldSize(message2, repeated_field); in CompareRepeatedField()
[all …]
Dmessage_differencer.h730 bool IsMatch(const FieldDescriptor* repeated_field,
772 const FieldDescriptor* repeated_field,
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_unknown_enum_values.proto44 repeated Enum repeated_field = 2; field
56 repeated Enum repeated_field = 2; field
/external/protobuf/ruby/lib/google/protobuf/
Drepeated_field.rb178 repeated_field[i] = result if result != val
/external/protobuf/cmake/
Dlibprotobuf-lite.cmake10 ${protobuf_source_dir}/src/google/protobuf/repeated_field.cc
Dextract_includes.bat.in70 …OTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\repeated_field.h include\google\protobuf\repeated…
/external/protobuf/ruby/tests/
Drepeated_field_test.rb561 def check_self_modifying_method(repeated_field, ref_array) argument
563 actual_result = yield(repeated_field)
569 assert_equal ref_array, repeated_field
/external/protobuf/ruby/ext/google/protobuf_c/
Drepeated_field.c54 static int index_position(VALUE _index, RepeatedField* repeated_field) { in index_position() argument
56 if (index < 0 && repeated_field->size > 0) { in index_position()
57 index = repeated_field->size + index; in index_position()
/external/protobuf/js/
Dtest.proto218 repeated string repeated_field = 9; field
/external/protobuf/
DAndroid.bp45 "src/google/protobuf/repeated_field.cc",
293 "src/google/protobuf/repeated_field.cc",
DMakefile.am637 ruby/ext/google/protobuf_c/repeated_field.c \
643 ruby/lib/google/protobuf/repeated_field.rb \
DBUILD82 "src/google/protobuf/repeated_field.cc",
DCHANGES.txt786 item = repeated_field.add()
790 repeated_field.add(foo=bar, baz=quux)
/external/protobuf/src/
DMakefile.am123 google/protobuf/repeated_field.h \
205 google/protobuf/repeated_field.cc \
/external/protobuf/util/
DMakefile.am637 ruby/ext/google/protobuf_c/repeated_field.c \
643 ruby/lib/google/protobuf/repeated_field.rb \
DBUILD82 "src/google/protobuf/repeated_field.cc",
DCHANGES.txt786 item = repeated_field.add()
790 repeated_field.add(foo=bar, baz=quux)