122
122
global_mock_egl = NULL;
125
void mtd::MockEGL::silence_uninteresting()
127
using namespace testing;
128
EXPECT_CALL(*this, eglGetCurrentDisplay())
130
EXPECT_CALL(*this, eglGetDisplay(_))
132
EXPECT_CALL(*this, eglGetDisplay(_))
134
EXPECT_CALL(*this, eglInitialize(_,_,_))
136
EXPECT_CALL(*this, eglGetConfigs(_,_,_, _))
138
EXPECT_CALL(*this, eglGetConfigAttrib(_,_,_,_))
140
EXPECT_CALL(*this, eglChooseConfig(_,_,_,_,_))
142
EXPECT_CALL(*this, eglCreateWindowSurface(_,_,_,_))
144
EXPECT_CALL(*this, eglCreatePbufferSurface(_,_,_))
146
EXPECT_CALL(*this, eglCreateContext(_,_,_,_))
148
EXPECT_CALL(*this, eglMakeCurrent(_,_,_,_))
150
EXPECT_CALL(*this, eglDestroyContext(_,_))
152
EXPECT_CALL(*this, eglDestroySurface(_,_))
154
EXPECT_CALL(*this, eglTerminate(_))
156
EXPECT_CALL(*this, eglSwapBuffers(_,_))
158
EXPECT_CALL(*this, eglCreateImageKHR(_,_,_,_,_))
160
EXPECT_CALL(*this, eglDestroyImageKHR(_,_))
164
125
#define CHECK_GLOBAL_MOCK(rettype) \
165
126
if (!global_mock_egl) \