Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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.cc660 RepeatedPtrField<TestAllTypes> repeated_field; in TEST() local
661 EXPECT_TRUE(repeated_field.empty()); in TEST()
662 EXPECT_EQ(0, repeated_field.size()); in TEST()
665 repeated_field.AddCleared(cleared); in TEST()
666 EXPECT_TRUE(repeated_field.empty()); in TEST()
667 EXPECT_EQ(0, repeated_field.size()); in TEST()
670 RepeatedPtrField<TestAllTypes> repeated_field; in TEST() local
671 EXPECT_TRUE(repeated_field.empty()); in TEST()
672 EXPECT_EQ(0, repeated_field.size()); in TEST()
675 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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dmessage_differencer.cc747 bool MessageDifferencer::IsMatch(const FieldDescriptor* repeated_field, in IsMatch() argument
754 if (repeated_field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in IsMatch()
756 *message1, *message2, repeated_field, index1, index2, in IsMatch()
769 *message1, *message2, repeated_field, index1, index2, in IsMatch()
775 reflection1->GetRepeatedMessage(*message1, repeated_field, index1); in IsMatch()
777 reflection2->GetRepeatedMessage(*message2, repeated_field, index2); in IsMatch()
779 specific_field.field = repeated_field; in IsMatch()
792 const FieldDescriptor* repeated_field, in CompareRepeatedField() argument
797 const int count1 = reflection1->FieldSize(message1, repeated_field); in CompareRepeatedField()
798 const int count2 = reflection2->FieldSize(message2, repeated_field); in CompareRepeatedField()
[all …]
Dmessage_differencer.h736 bool IsMatch(const FieldDescriptor* repeated_field,
778 const FieldDescriptor* repeated_field,
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/lib/google/protobuf/
Drepeated_field.rb178 repeated_field[i] = result if result != val
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/cmake/
Dlibprotobuf-lite.cmake10 ${protobuf_source_dir}/src/google/protobuf/repeated_field.cc
Dextract_includes.bat.in71 …OTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\repeated_field.h include\google\protobuf\repeated…
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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
/frameworks/opt/gamesdk/src/protobuf/
Dprotobuf.cmake120 ${GP_SRC_DIR}/repeated_field.cc
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dtest.proto219 repeated string repeated_field = 9; field
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/
DMakefile.am126 google/protobuf/repeated_field.h \
207 google/protobuf/repeated_field.cc \
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/
DMakefile.am677 ruby/ext/google/protobuf_c/repeated_field.c \
683 ruby/lib/google/protobuf/repeated_field.rb \
DBUILD83 "src/google/protobuf/repeated_field.cc",
DCHANGES.txt918 item = repeated_field.add()
922 repeated_field.add(foo=bar, baz=quux)