Remove MOCKABLE_VIRTUAL from getLibFunc()

- this method is called in ctor

Change-Id: I8d16ab30c7bf8f886db8369024c1445eeda061ad
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2019-04-17 10:33:52 +02:00
committed by sys_ocldev
parent b51b4a173b
commit 2f497adb44
2 changed files with 1 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ class VASharingFunctions : public SharingFunctions {
return vaSyncSurfacePFN(vaDisplay, vaSurface);
}
MOCKABLE_VIRTUAL void *getLibFunc(const char *func) {
void *getLibFunc(const char *func) {
if (vaGetLibFuncPFN) {
return vaGetLibFuncPFN(vaDisplay, func);
}

View File

@@ -23,7 +23,6 @@ class VASharingFunctionsMock : public VASharingFunctions {
bool deriveImageCalled = false;
bool destroyImageCalled = false;
bool syncSurfaceCalled = false;
bool getLibFuncCalled = false;
bool extGetSurfaceHandleCalled = false;
osHandle acquiredVaHandle = 0;
@@ -69,11 +68,6 @@ class VASharingFunctionsMock : public VASharingFunctions {
syncSurfaceCalled = true;
return VA_STATUS_SUCCESS;
}
void *getLibFunc(const char *func) override {
getLibFuncCalled = true;
return nullptr;
}
};
class MockVaSharing {