Searched refs:ClaimMemory (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | validation_context_unittest.cc | 36 EXPECT_FALSE(context.ClaimMemory( in TEST() 91 EXPECT_TRUE(context.ClaimMemory(ToPtr(1254), 10)); in TEST() 252 TEST(ValidationContextTest, ClaimMemory) { in TEST() argument 257 EXPECT_FALSE(context.ClaimMemory(ToPtr(500), 100)); in TEST() 258 EXPECT_FALSE(context.ClaimMemory(ToPtr(800), 300)); in TEST() 259 EXPECT_TRUE(context.ClaimMemory(ToPtr(1000), 100)); in TEST() 260 EXPECT_FALSE(context.ClaimMemory(ToPtr(1099), 100)); in TEST() 261 EXPECT_TRUE(context.ClaimMemory(ToPtr(1100), 200)); in TEST() 262 EXPECT_FALSE(context.ClaimMemory(ToPtr(2000), 1001)); in TEST() 263 EXPECT_TRUE(context.ClaimMemory(ToPtr(2000), 500)); in TEST() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | validation_util.cc | 51 if (!validation_context->ClaimMemory(data, header->num_bytes)) { in ValidateStructHeaderAndClaimMemory() 69 if (!validation_context->ClaimMemory(data, kUnionDataSize) || in ValidateNonInlinedUnionHeaderAndClaimMemory()
|
D | validation_context.h | 53 bool ClaimMemory(const void* position, uint32_t num_bytes) { in COMPONENT_EXPORT()
|
D | message_header_validator.cc | 79 !validation_context->ClaimMemory(header_v2->payload.Get(), 1)) { in IsValidMessageHeader()
|
D | array_internal.h | 337 if (!validation_context->ClaimMemory(data, header->num_bytes)) {
|