void callNoneConstantFunction_passedNoneConstantInstance_calledOnce() { ConstantMockHelper helper; EXPECT_CALL(helper.mock, cpp_func()).Times(1); m_lua->run_chunk("return function(obj) obj:cpp_func() end"); m_lua->call(1, helper.ptr_to); }
void callLuaAddedFunctionWhichCallsNoneConstMember_passedNoneConstantInstance_calledOnce() { ConstantMockHelper helper; EXPECT_CALL(helper.mock, cpp_func()).Times(1); m_lua->run_chunk("function Constant:lua_func() self:cpp_func() end " "return function(object) object:lua_func() end "); m_lua->call(1, helper.ptr_to); }
int foo::caller() { c_func(this); cpp_func(this); return 0; }