Skip to content

Commit 2f497ad

Browse files
Remove MOCKABLE_VIRTUAL from getLibFunc()
- this method is called in ctor Change-Id: I8d16ab30c7bf8f886db8369024c1445eeda061ad Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
1 parent b51b4a1 commit 2f497ad

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

runtime/sharings/va/va_sharing_functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class VASharingFunctions : public SharingFunctions {
4242
return vaSyncSurfacePFN(vaDisplay, vaSurface);
4343
}
4444

45-
MOCKABLE_VIRTUAL void *getLibFunc(const char *func) {
45+
void *getLibFunc(const char *func) {
4646
if (vaGetLibFuncPFN) {
4747
return vaGetLibFuncPFN(vaDisplay, func);
4848
}

unit_tests/sharings/va/mock_va_sharing.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class VASharingFunctionsMock : public VASharingFunctions {
2323
bool deriveImageCalled = false;
2424
bool destroyImageCalled = false;
2525
bool syncSurfaceCalled = false;
26-
bool getLibFuncCalled = false;
2726
bool extGetSurfaceHandleCalled = false;
2827

2928
osHandle acquiredVaHandle = 0;
@@ -69,11 +68,6 @@ class VASharingFunctionsMock : public VASharingFunctions {
6968
syncSurfaceCalled = true;
7069
return VA_STATUS_SUCCESS;
7170
}
72-
73-
void *getLibFunc(const char *func) override {
74-
getLibFuncCalled = true;
75-
return nullptr;
76-
}
7771
};
7872

7973
class MockVaSharing {

0 commit comments

Comments
 (0)