Searched refs:ClaimMemory (Results 1 – 5 of 5) sorted by relevance
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | validation_context_unittest.cc | 34 EXPECT_FALSE(context.ClaimMemory( in TEST() 70 EXPECT_TRUE(context.ClaimMemory(ToPtr(1254), 10)); in TEST() 169 TEST(ValidationContextTest, ClaimMemory) { in TEST() argument 174 EXPECT_FALSE(context.ClaimMemory(ToPtr(500), 100)); in TEST() 175 EXPECT_FALSE(context.ClaimMemory(ToPtr(800), 300)); in TEST() 176 EXPECT_TRUE(context.ClaimMemory(ToPtr(1000), 100)); in TEST() 177 EXPECT_FALSE(context.ClaimMemory(ToPtr(1099), 100)); in TEST() 178 EXPECT_TRUE(context.ClaimMemory(ToPtr(1100), 200)); in TEST() 179 EXPECT_FALSE(context.ClaimMemory(ToPtr(2000), 1001)); in TEST() 180 EXPECT_TRUE(context.ClaimMemory(ToPtr(2000), 500)); in TEST() [all …]
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | validation_util.cc | 50 if (!validation_context->ClaimMemory(data, header->num_bytes)) { in ValidateStructHeaderAndClaimMemory() 72 if (!inlined && !validation_context->ClaimMemory(data, kUnionDataSize)) { in ValidateUnionHeaderAndClaimMemory()
|
D | validation_context.h | 46 bool ClaimMemory(const void* position, uint32_t num_bytes);
|
D | validation_context.cc | 47 bool ValidationContext::ClaimMemory(const void* position, uint32_t num_bytes) { in ClaimMemory() function in mojo::internal::ValidationContext
|
D | array_internal.h | 315 if (!validation_context->ClaimMemory(data, header->num_bytes)) {
|