Home
last modified time | relevance | path

Searched refs:SpaceUsed (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/src/google/protobuf/
Dextension_set_unittest.cc342 const int base_size = message.SpaceUsed(); \ in TEST()
346 EXPECT_LE(min_expected_size, message.SpaceUsed()); \ in TEST()
365 const int base_size = message.SpaceUsed(); in TEST()
370 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
376 const int base_size = message.SpaceUsed(); in TEST()
381 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
386 const int base_size = message.SpaceUsed(); in TEST()
391 int min_expected_size = base_size + foreign.SpaceUsed(); in TEST()
392 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
408 const int base_size = message.SpaceUsed(); \ in TEST()
[all …]
Dunknown_field_set_unittest.cc471 TEST_F(UnknownFieldSetTest, SpaceUsed) { in TEST_F() argument
476 int base_size = empty_message.SpaceUsed(); in TEST_F()
478 EXPECT_EQ(base_size, empty_message.SpaceUsed()); in TEST_F()
482 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
483 base_size = empty_message.SpaceUsed(); in TEST_F()
486 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
487 base_size = empty_message.SpaceUsed(); in TEST_F()
490 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
491 base_size = empty_message.SpaceUsed(); in TEST_F()
494 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
[all …]
Ddynamic_message_unittest.cc146 TEST_F(DynamicMessageTest, SpaceUsed) { in TEST_F() argument
155 int initial_space_used = message->SpaceUsed(); in TEST_F()
158 EXPECT_LT(initial_space_used, message->SpaceUsed()); in TEST_F()
Dunknown_field_set.cc80 total_size += field.group_->SpaceUsed(); in SpaceUsedExcludingSelf()
89 int UnknownFieldSet::SpaceUsed() const { in SpaceUsed() function in google::protobuf::UnknownFieldSet
Dmessage.cc156 int Message::SpaceUsed() const { in SpaceUsed() function in google::protobuf::Message
157 return GetReflection()->SpaceUsed(*this); in SpaceUsed()
Dmessage.h240 virtual int SpaceUsed() const;
396 virtual int SpaceUsed(const Message& message) const = 0;
Drepeated_field.h277 static int SpaceUsed(const GenericType& value) { return value.SpaceUsed(); } in SpaceUsed() function
305 static int SpaceUsed(const string& value) { in SpaceUsed() function
718 allocated_bytes += TypeHandler::SpaceUsed(*cast<TypeHandler>(elements_[i])); in SpaceUsedExcludingSelf()
Dunknown_field_set.h86 int SpaceUsed() const;
Dgenerated_message_reflection.h138 int SpaceUsed(const Message& message) const;
Dextension_set_heavy.cc289 total_size += down_cast<Message*>(message_value)->SpaceUsed(); in SpaceUsedExcludingSelf()
Dgenerated_message_reflection.cc208 int GeneratedMessageReflection::SpaceUsed(const Message& message) const { in SpaceUsed() function in google::protobuf::internal::GeneratedMessageReflection
301 total_size += sub_message->SpaceUsed(); in SpaceUsed()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc683 EXPECT_LE(sizeof(unittest::TestAllTypes), message1.SpaceUsed()); in TEST()
684 const int empty_message_size = message1.SpaceUsed(); in TEST()
691 EXPECT_EQ(empty_message_size, message1.SpaceUsed()); in TEST()
697 EXPECT_LE(empty_message_size + sizeof(string), message1.SpaceUsed()); in TEST()
705 message1.SpaceUsed()); in TEST()
707 int previous_size = message1.SpaceUsed(); in TEST()
713 message1.optional_nested_message().SpaceUsed()); in TEST()
716 message1.SpaceUsed()); in TEST()
/external/protobuf/
DCHANGES.txt244 * All message classes now have a SpaceUsed() method which returns an estimate