Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
int foo::caller() {
    c_func(this);
    cpp_func(this);
    return 0;
}