Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc495 TEST_F(UnknownFieldSetTest, SpaceUsed) { in TEST_F() argument
500 int base_size = empty_message.SpaceUsed(); in TEST_F()
502 EXPECT_EQ(base_size, empty_message.SpaceUsed()); in TEST_F()
506 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
507 base_size = empty_message.SpaceUsed(); in TEST_F()
510 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
511 base_size = empty_message.SpaceUsed(); in TEST_F()
514 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
515 base_size = empty_message.SpaceUsed(); in TEST_F()
518 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
[all …]
Dextension_set_unittest.cc650 const int base_size = message.SpaceUsed(); \ in TEST()
654 EXPECT_LE(min_expected_size, message.SpaceUsed()); \ in TEST()
673 const int base_size = message.SpaceUsed(); in TEST()
678 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
684 const int base_size = message.SpaceUsed(); in TEST()
689 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
694 const int base_size = message.SpaceUsed(); in TEST()
699 int min_expected_size = base_size + foreign.SpaceUsed(); in TEST()
700 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
716 const int base_size = message.SpaceUsed(); \ in TEST()
[all …]
Ddynamic_message_unittest.cc234 TEST_F(DynamicMessageTest, SpaceUsed) { in TEST_F() argument
243 int initial_space_used = message->SpaceUsed(); in TEST_F()
246 EXPECT_LT(initial_space_used, message->SpaceUsed()); in TEST_F()
Dmap_entry.h197 int SpaceUsed() const { in SpaceUsed() function
199 size += entry_lite_.SpaceUsed(); in SpaceUsed()
Dunknown_field_set.cc147 total_size += field.group_->SpaceUsed(); in SpaceUsedExcludingSelf()
156 int UnknownFieldSet::SpaceUsed() const { in SpaceUsed() function in google::protobuf::UnknownFieldSet
Darena_unittest.cc1210 EXPECT_EQ(0, arena_1.SpaceUsed()); in TEST()
1215 EXPECT_EQ(Align8(320), arena_1.SpaceUsed()); in TEST()
1224 EXPECT_EQ(0, arena_2.SpaceUsed()); in TEST()
1228 EXPECT_EQ(Align8(55), arena_2.SpaceUsed()); in TEST()
1235 EXPECT_EQ(0, arena_3.SpaceUsed()); in TEST()
1238 EXPECT_EQ(Align8(190), arena_3.SpaceUsed()); in TEST()
1241 EXPECT_EQ(Align8(190) + Align8(70), arena_3.SpaceUsed()); in TEST()
Dmessage.cc163 int Message::SpaceUsed() const { in SpaceUsed() function in google::protobuf::Message
164 return GetReflection()->SpaceUsed(*this); in SpaceUsed()
Dunknown_field_set.h104 int SpaceUsed() const;
Dmessage.h248 virtual int SpaceUsed() const;
420 virtual int SpaceUsed(const Message& message) const = 0;
Dextension_set_heavy.cc374 total_size += lazymessage_value->SpaceUsed(); in SpaceUsedExcludingSelf()
376 total_size += down_cast<Message*>(message_value)->SpaceUsed(); in SpaceUsedExcludingSelf()
Darena.cc242 uint64 Arena::SpaceUsed() const { in SpaceUsed() function in google::protobuf::Arena
Dmap_entry_lite.h215 int SpaceUsed() const { in SpaceUsed() function
Dmap_type_handler.h460 return value->SpaceUsed();
466 return value.SpaceUsed();
Drepeated_field.h583 static inline int SpaceUsed(const GenericType& value) {
584 return value.SpaceUsed();
717 static int SpaceUsed(const string& value) {
1566 allocated_bytes += TypeHandler::SpaceUsed(
Dmap_field.cc459 size += message.GetReflection()->SpaceUsed(message); in SpaceUsedExcludingSelfNoLock()
Dgenerated_message_reflection.h217 int SpaceUsed(const Message& message) const;
Dmap_test_util.cc1342 message->SpaceUsed(); in ExpectMapFieldsSetViaReflectionIterator()
1486 message->SpaceUsed(); in ExpectMapFieldsSetViaReflectionIterator()
1526 message->SpaceUsed(); in ExpectMapFieldsSetViaReflectionIterator()
Dmap_test.cc2194 TEST(GeneratedMapFieldReflectionTest, SpaceUsed) { in TEST() argument
2200 EXPECT_LT(0, message.GetReflection()->SpaceUsed(message)); in TEST()
2502 int initial_space_used = message->SpaceUsed(); in TEST_F()
2505 EXPECT_LT(initial_space_used, message->SpaceUsed()); in TEST_F()
Darena.h453 GOOGLE_ATTRIBUTE_NOINLINE uint64 SpaceUsed() const;
Dgenerated_message_reflection.cc278 int GeneratedMessageReflection::SpaceUsed(const Message& message) const { in SpaceUsed() function in google::protobuf::internal::GeneratedMessageReflection
381 total_size += sub_message->SpaceUsed(); in SpaceUsed()
Dextension_set.h449 virtual int SpaceUsed() const = 0;
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc865 EXPECT_LE(sizeof(unittest::TestAllTypes), message1.SpaceUsed()); in TEST()
866 const int empty_message_size = message1.SpaceUsed(); in TEST()
873 EXPECT_EQ(empty_message_size, message1.SpaceUsed()); in TEST()
879 EXPECT_LE(empty_message_size + sizeof(string), message1.SpaceUsed()); in TEST()
887 message1.SpaceUsed()); in TEST()
889 int previous_size = message1.SpaceUsed(); in TEST()
895 message1.optional_nested_message().SpaceUsed()); in TEST()
898 message1.SpaceUsed()); in TEST()
903 EXPECT_LE(sizeof(unittest::TestOneof2), message1.SpaceUsed()); in TEST()
905 const int empty_message_size = message1.SpaceUsed(); in TEST()
[all …]
/external/protobuf/
DCHANGES.txt1038 * All message classes now have a SpaceUsed() method which returns an estimate