Searched refs:IsValidRange (Results 1 – 5 of 5) sorted by relevance
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | validation_context_unittest.cc | 32 EXPECT_FALSE(context.IsValidRange( in TEST() 54 TEST(ValidationContextTest, IsValidRange) { in TEST() argument 59 EXPECT_FALSE(context.IsValidRange(ToPtr(100), 5)); in TEST() 60 EXPECT_FALSE(context.IsValidRange(ToPtr(1230), 50)); in TEST() 61 EXPECT_TRUE(context.IsValidRange(ToPtr(1234), 5)); in TEST() 62 EXPECT_TRUE(context.IsValidRange(ToPtr(1240), 50)); in TEST() 63 EXPECT_TRUE(context.IsValidRange(ToPtr(1234), 100)); in TEST() 64 EXPECT_FALSE(context.IsValidRange(ToPtr(1234), 101)); in TEST() 65 EXPECT_FALSE(context.IsValidRange(ToPtr(1240), 100)); in TEST() 66 EXPECT_FALSE(context.IsValidRange(ToPtr(1333), 5)); in TEST() [all …]
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | validation_context.h | 57 bool IsValidRange(const void* position, uint32_t num_bytes) const;
|
D | validation_context.cc | 72 bool ValidationContext::IsValidRange(const void* position, in IsValidRange() function in mojo::internal::ValidationContext
|
D | validation_util.cc | 36 if (!validation_context->IsValidRange(data, sizeof(StructHeader))) { in ValidateStructHeaderAndClaimMemory()
|
D | array_internal.h | 292 if (!validation_context->IsValidRange(data, sizeof(ArrayHeader))) {
|