~ubuntu-branches/ubuntu/vivid/mir/vivid

« back to all changes in this revision

Viewing changes to tests/mir_test_doubles/mock_egl.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-01-08 02:04:38 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20140108020438-e1npu0pm7qdv5wc4
Tags: upstream-0.1.3+14.04.20140108
ImportĀ upstreamĀ versionĀ 0.1.3+14.04.20140108

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
    global_mock_egl = NULL;
123
123
}
124
124
 
125
 
void mtd::MockEGL::silence_uninteresting()
126
 
{
127
 
    using namespace testing;
128
 
    EXPECT_CALL(*this, eglGetCurrentDisplay())
129
 
        .Times(AtLeast(0));
130
 
    EXPECT_CALL(*this, eglGetDisplay(_))
131
 
        .Times(AtLeast(0));
132
 
    EXPECT_CALL(*this, eglGetDisplay(_))
133
 
        .Times(AtLeast(0));
134
 
    EXPECT_CALL(*this, eglInitialize(_,_,_))
135
 
        .Times(AtLeast(0));
136
 
    EXPECT_CALL(*this, eglGetConfigs(_,_,_, _))
137
 
        .Times(AtLeast(0));
138
 
    EXPECT_CALL(*this, eglGetConfigAttrib(_,_,_,_))
139
 
        .Times(AtLeast(0));
140
 
    EXPECT_CALL(*this, eglChooseConfig(_,_,_,_,_))
141
 
        .Times(AtLeast(0));
142
 
    EXPECT_CALL(*this, eglCreateWindowSurface(_,_,_,_))
143
 
        .Times(AtLeast(0));
144
 
    EXPECT_CALL(*this, eglCreatePbufferSurface(_,_,_))
145
 
        .Times(AtLeast(0));
146
 
    EXPECT_CALL(*this, eglCreateContext(_,_,_,_))
147
 
        .Times(AtLeast(0));
148
 
    EXPECT_CALL(*this, eglMakeCurrent(_,_,_,_))
149
 
        .Times(AtLeast(0));
150
 
    EXPECT_CALL(*this, eglDestroyContext(_,_))
151
 
        .Times(AtLeast(0));
152
 
    EXPECT_CALL(*this, eglDestroySurface(_,_))
153
 
        .Times(AtLeast(0));
154
 
    EXPECT_CALL(*this, eglTerminate(_))
155
 
        .Times(AtLeast(0));
156
 
    EXPECT_CALL(*this, eglSwapBuffers(_,_))
157
 
        .Times(AtLeast(0));
158
 
    EXPECT_CALL(*this, eglCreateImageKHR(_,_,_,_,_))
159
 
        .Times(AtLeast(0));
160
 
    EXPECT_CALL(*this, eglDestroyImageKHR(_,_))
161
 
        .Times(AtLeast(0));
162
 
}
163
 
 
164
125
#define CHECK_GLOBAL_MOCK(rettype)         \
165
126
    if (!global_mock_egl)                  \
166
127
    {                                      \