Home
last modified time | relevance | path

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

/external/libmojo/mojo/public/cpp/bindings/tests/
Dvalidation_context_unittest.cc32 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/
Dvalidation_context.h57 bool IsValidRange(const void* position, uint32_t num_bytes) const;
Dvalidation_context.cc72 bool ValidationContext::IsValidRange(const void* position, in IsValidRange() function in mojo::internal::ValidationContext
Dvalidation_util.cc36 if (!validation_context->IsValidRange(data, sizeof(StructHeader))) { in ValidateStructHeaderAndClaimMemory()
Darray_internal.h292 if (!validation_context->IsValidRange(data, sizeof(ArrayHeader))) {