Home
last modified time | relevance | path

Searched refs:ClaimMemory (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/mojo/public/cpp/bindings/tests/
Dvalidation_context_unittest.cc36 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/
Dvalidation_util.cc51 if (!validation_context->ClaimMemory(data, header->num_bytes)) { in ValidateStructHeaderAndClaimMemory()
69 if (!validation_context->ClaimMemory(data, kUnionDataSize) || in ValidateNonInlinedUnionHeaderAndClaimMemory()
Dvalidation_context.h53 bool ClaimMemory(const void* position, uint32_t num_bytes) { in COMPONENT_EXPORT()
Dmessage_header_validator.cc79 !validation_context->ClaimMemory(header_v2->payload.Get(), 1)) { in IsValidMessageHeader()
Darray_internal.h337 if (!validation_context->ClaimMemory(data, header->num_bytes)) {