Searched refs:SpaceUsed (Results 1 - 25 of 25) sorted by relevance

/external/protobuf/src/google/protobuf/
H A Dextension_set_unittest.cc342 const int base_size = message.SpaceUsed(); \
346 EXPECT_LE(min_expected_size, message.SpaceUsed()); \
365 const int base_size = message.SpaceUsed();
370 EXPECT_LE(min_expected_size, message.SpaceUsed());
376 const int base_size = message.SpaceUsed();
381 EXPECT_LE(min_expected_size, message.SpaceUsed());
386 const int base_size = message.SpaceUsed();
391 int min_expected_size = base_size + foreign.SpaceUsed();
392 EXPECT_LE(min_expected_size, message.SpaceUsed());
402 // SpaceUsed()
[all...]
H A Ddynamic_message_unittest.cc146 TEST_F(DynamicMessageTest, SpaceUsed) {
147 // Test that SpaceUsed() works properly
155 int initial_space_used = message->SpaceUsed();
158 EXPECT_LT(initial_space_used, message->SpaceUsed());
H A Dunknown_field_set_unittest.cc471 TEST_F(UnknownFieldSetTest, SpaceUsed) {
476 int base_size = empty_message.SpaceUsed();
478 EXPECT_EQ(base_size, empty_message.SpaceUsed());
480 // Make sure each thing we add to the set increases the SpaceUsed().
482 EXPECT_LT(base_size, empty_message.SpaceUsed());
483 base_size = empty_message.SpaceUsed();
486 EXPECT_LT(base_size, empty_message.SpaceUsed());
487 base_size = empty_message.SpaceUsed();
490 EXPECT_LT(base_size, empty_message.SpaceUsed());
491 base_size = empty_message.SpaceUsed();
[all...]
H A Dmessage.cc157 int Message::SpaceUsed() const { function in class:google::protobuf::Message
158 return GetReflection()->SpaceUsed(*this);
H A Dunknown_field_set.cc80 total_size += field.group_->SpaceUsed();
89 int UnknownFieldSet::SpaceUsed() const { function in class:google::protobuf::UnknownFieldSet
H A Dunknown_field_set.h85 // Version of SpaceUsed() including sizeof(*this).
86 int SpaceUsed() const;
H A Dmessage.h239 // Reflection object's SpaceUsed() method.
240 virtual int SpaceUsed() const;
396 virtual int SpaceUsed(const Message& message) const = 0;
H A Drepeated_field.h170 // static int SpaceUsed(const Type&);
181 // implement SpaceUsed(), and thus need to call SpaceUsedExcludingSelf()
277 static int SpaceUsed(const GenericType& value) { return value.SpaceUsed(); } function in class:google::protobuf::internal::GenericTypeHandler
288 // in the DLL. But SpaceUsed() calls StringSpaceUsedExcludingSelf() which
305 static int SpaceUsed(const string& value) { function in class:google::protobuf::internal::StringTypeHandler
718 allocated_bytes += TypeHandler::SpaceUsed(*cast<TypeHandler>(elements_[i]));
H A Dgenerated_message_reflection.h138 int SpaceUsed(const Message& message) const;
H A Dextension_set_heavy.cc275 // but MessageLite has no SpaceUsed(), so we must directly call
289 total_size += down_cast<Message*>(message_value)->SpaceUsed();
H A Dgenerated_message_reflection.cc208 int GeneratedMessageReflection::SpaceUsed(const Message& message) const { function in class:google::protobuf::internal::GeneratedMessageReflection
301 total_size += sub_message->SpaceUsed();
/external/chromium_org/third_party/protobuf/src/google/protobuf/
H A Ddynamic_message_unittest.cc150 TEST_F(DynamicMessageTest, SpaceUsed) {
151 // Test that SpaceUsed() works properly
159 int initial_space_used = message->SpaceUsed();
162 EXPECT_LT(initial_space_used, message->SpaceUsed());
H A Dunknown_field_set_unittest.cc480 TEST_F(UnknownFieldSetTest, SpaceUsed) {
485 int base_size = empty_message.SpaceUsed();
487 EXPECT_EQ(base_size, empty_message.SpaceUsed());
489 // Make sure each thing we add to the set increases the SpaceUsed().
491 EXPECT_LT(base_size, empty_message.SpaceUsed());
492 base_size = empty_message.SpaceUsed();
495 EXPECT_LT(base_size, empty_message.SpaceUsed());
496 base_size = empty_message.SpaceUsed();
499 EXPECT_LT(base_size, empty_message.SpaceUsed());
500 base_size = empty_message.SpaceUsed();
[all...]
H A Dextension_set_unittest.cc419 const int base_size = message.SpaceUsed(); \
423 EXPECT_LE(min_expected_size, message.SpaceUsed()); \
442 const int base_size = message.SpaceUsed();
447 EXPECT_LE(min_expected_size, message.SpaceUsed());
453 const int base_size = message.SpaceUsed();
458 EXPECT_LE(min_expected_size, message.SpaceUsed());
463 const int base_size = message.SpaceUsed();
468 int min_expected_size = base_size + foreign.SpaceUsed();
469 EXPECT_LE(min_expected_size, message.SpaceUsed());
479 // SpaceUsed()
[all...]
H A Dunknown_field_set.cc106 total_size += field.group_->SpaceUsed();
115 int UnknownFieldSet::SpaceUsed() const { function in class:google::protobuf::UnknownFieldSet
H A Dmessage.cc158 int Message::SpaceUsed() const { function in class:google::protobuf::Message
159 return GetReflection()->SpaceUsed(*this);
H A Dmessage.h220 // Reflection object's SpaceUsed() method.
221 virtual int SpaceUsed() const;
376 virtual int SpaceUsed(const Message& message) const = 0;
H A Dunknown_field_set.h100 // Version of SpaceUsed() including sizeof(*this).
101 int SpaceUsed() const;
H A Drepeated_field.h222 // static int SpaceUsed(const Type&);
233 // implement SpaceUsed(), and thus need to call SpaceUsedExcludingSelf()
341 static int SpaceUsed(const GenericType& value) { return value.SpaceUsed(); } function in class:google::protobuf::internal::GenericTypeHandler
372 // in the DLL. But SpaceUsed() calls StringSpaceUsedExcludingSelf() which
392 static int SpaceUsed(const string& value) { function in class:google::protobuf::internal::StringTypeHandler
912 allocated_bytes += TypeHandler::SpaceUsed(*cast<TypeHandler>(elements_[i]));
H A Dgenerated_message_reflection.h144 int SpaceUsed(const Message& message) const;
H A Dextension_set_heavy.cc316 // but MessageLite has no SpaceUsed(), so we must directly call
331 total_size += lazymessage_value->SpaceUsed();
333 total_size += down_cast<Message*>(message_value)->SpaceUsed();
H A Dgenerated_message_reflection.cc193 int GeneratedMessageReflection::SpaceUsed(const Message& message) const { function in class:google::protobuf::internal::GeneratedMessageReflection
286 total_size += sub_message->SpaceUsed();
H A Dextension_set.h395 // SpaceUsed()).
415 virtual int SpaceUsed() const = 0;
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_unittest.cc806 // sizeof provides a lower bound on SpaceUsed().
807 EXPECT_LE(sizeof(unittest::TestAllTypes), message1.SpaceUsed());
808 const int empty_message_size = message1.SpaceUsed();
815 EXPECT_EQ(empty_message_size, message1.SpaceUsed());
818 // only increase SpaceUsed() by the size of a string object, though this is
821 EXPECT_LE(empty_message_size + sizeof(string), message1.SpaceUsed());
824 // increase SpaceUsed(), because it cannot store the value internally.
829 message1.SpaceUsed());
831 int previous_size = message1.SpaceUsed();
837 message1.optional_nested_message().SpaceUsed());
[all...]
/external/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_unittest.cc682 // sizeof provides a lower bound on SpaceUsed().
683 EXPECT_LE(sizeof(unittest::TestAllTypes), message1.SpaceUsed());
684 const int empty_message_size = message1.SpaceUsed();
691 EXPECT_EQ(empty_message_size, message1.SpaceUsed());
694 // only increase SpaceUsed() by the size of a string object, though this is
697 EXPECT_LE(empty_message_size + sizeof(string), message1.SpaceUsed());
700 // increase SpaceUsed(), because it cannot store the value internally.
705 message1.SpaceUsed());
707 int previous_size = message1.SpaceUsed();
713 message1.optional_nested_message().SpaceUsed());
[all...]

Completed in 386 milliseconds