Home
last modified time | relevance | path

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

/external/libmojo/mojo/public/cpp/bindings/tests/
Dvalidation_context_unittest.cc34 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/
Dvalidation_util.cc50 if (!validation_context->ClaimMemory(data, header->num_bytes)) { in ValidateStructHeaderAndClaimMemory()
72 if (!inlined && !validation_context->ClaimMemory(data, kUnionDataSize)) { in ValidateUnionHeaderAndClaimMemory()
Dvalidation_context.h46 bool ClaimMemory(const void* position, uint32_t num_bytes);
Dvalidation_context.cc47 bool ValidationContext::ClaimMemory(const void* position, uint32_t num_bytes) { in ClaimMemory() function in mojo::internal::ValidationContext
Darray_internal.h315 if (!validation_context->ClaimMemory(data, header->num_bytes)) {