Home
last modified time | relevance | path

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

/external/libchrome/base/memory/
Dprotected_memory_unittest.cc84 struct BadIcall { struct
85 BadIcall() = default;
86 BadIcall(int (*fp_)(int)) : fp(fp_) {} in BadIcall() argument
96 PROTECTED_MEMORY_SECTION ProtectedMemory<BadIcall> icall_pm1;
99 static ProtectedMemory<BadIcall>::Initializer I( in TEST_F()
100 &icall_pm1, BadIcall(reinterpret_cast<int (*)(int)>(&bad_icall))); in TEST_F()
102 EXPECT_EQ(UnsanitizedCfiCall(icall_pm1, &BadIcall::fp)(1), 5); in TEST_F()