/external/protobuf/src/google/protobuf/ |
H A D | extension_set_unittest.cc | 342 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 D | dynamic_message_unittest.cc | 146 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 D | unknown_field_set_unittest.cc | 471 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 D | message.cc | 156 int Message::SpaceUsed() const { function in class:google::protobuf::Message 157 return GetReflection()->SpaceUsed(*this);
|
H A D | unknown_field_set.cc | 80 total_size += field.group_->SpaceUsed(); 89 int UnknownFieldSet::SpaceUsed() const { function in class:google::protobuf::UnknownFieldSet
|
H A D | unknown_field_set.h | 85 // Version of SpaceUsed() including sizeof(*this). 86 int SpaceUsed() const;
|
H A D | message.h | 239 // Reflection object's SpaceUsed() method. 240 virtual int SpaceUsed() const; 396 virtual int SpaceUsed(const Message& message) const = 0;
|
H A D | repeated_field.h | 170 // 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 D | generated_message_reflection.h | 138 int SpaceUsed(const Message& message) const;
|
H A D | extension_set_heavy.cc | 275 // but MessageLite has no SpaceUsed(), so we must directly call 289 total_size += down_cast<Message*>(message_value)->SpaceUsed();
|
H A D | generated_message_reflection.cc | 208 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 D | dynamic_message_unittest.cc | 150 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 D | unknown_field_set_unittest.cc | 480 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 D | extension_set_unittest.cc | 419 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 D | unknown_field_set.cc | 106 total_size += field.group_->SpaceUsed(); 115 int UnknownFieldSet::SpaceUsed() const { function in class:google::protobuf::UnknownFieldSet
|
H A D | message.cc | 158 int Message::SpaceUsed() const { function in class:google::protobuf::Message 159 return GetReflection()->SpaceUsed(*this);
|
H A D | message.h | 220 // Reflection object's SpaceUsed() method. 221 virtual int SpaceUsed() const; 376 virtual int SpaceUsed(const Message& message) const = 0;
|
H A D | unknown_field_set.h | 100 // Version of SpaceUsed() including sizeof(*this). 101 int SpaceUsed() const;
|
H A D | repeated_field.h | 222 // 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 D | generated_message_reflection.h | 144 int SpaceUsed(const Message& message) const;
|
H A D | extension_set_heavy.cc | 316 // 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 D | generated_message_reflection.cc | 193 int GeneratedMessageReflection::SpaceUsed(const Message& message) const { function in class:google::protobuf::internal::GeneratedMessageReflection 286 total_size += sub_message->SpaceUsed();
|
H A D | extension_set.h | 395 // SpaceUsed()). 415 virtual int SpaceUsed() const = 0;
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
H A D | cpp_unittest.cc | 806 // 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 D | cpp_unittest.cc | 682 // 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...] |