Searched refs:IsValidRange (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | validation_context_unittest.cc | 34 EXPECT_FALSE(context.IsValidRange( in TEST() 75 TEST(ValidationContextTest, IsValidRange) { in TEST() argument 80 EXPECT_FALSE(context.IsValidRange(ToPtr(100), 5)); in TEST() 81 EXPECT_FALSE(context.IsValidRange(ToPtr(1230), 50)); in TEST() 82 EXPECT_TRUE(context.IsValidRange(ToPtr(1234), 5)); in TEST() 83 EXPECT_TRUE(context.IsValidRange(ToPtr(1240), 50)); in TEST() 84 EXPECT_TRUE(context.IsValidRange(ToPtr(1234), 100)); in TEST() 85 EXPECT_FALSE(context.IsValidRange(ToPtr(1234), 101)); in TEST() 86 EXPECT_FALSE(context.IsValidRange(ToPtr(1240), 100)); in TEST() 87 EXPECT_FALSE(context.IsValidRange(ToPtr(1333), 5)); in TEST() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | validation_context.h | 107 bool IsValidRange(const void* position, uint32_t num_bytes) const { in COMPONENT_EXPORT()
|
D | validation_util.cc | 37 if (!validation_context->IsValidRange(data, sizeof(StructHeader))) { in ValidateStructHeaderAndClaimMemory()
|
D | array_internal.h | 314 if (!validation_context->IsValidRange(data, sizeof(ArrayHeader))) {
|