GlSharingFunction tests update

Add mock of opengl32.dll to check that sharing functions are loaded

Change-Id: I361707ee9a506e84db51d4fa9c98823db2550fae
This commit is contained in:
Katarzyna Cencelewska
2019-01-28 08:27:26 +01:00
committed by sys_ocldev
parent 711d67aa3c
commit c9a8f9b1be
17 changed files with 715 additions and 440 deletions

View File

@ -81,6 +81,10 @@ void MockContext::releaseSharingFunctions(SharingType sharing) {
this->sharingFunctions[sharing].release();
}
void MockContext::resetSharingFunctions(SharingType sharing) {
this->sharingFunctions[sharing].reset();
}
void MockContext::registerSharingWithId(SharingFunctions *sharing, SharingType sharingId) {
this->sharingFunctions[sharingId].reset(sharing);
}