Cleanup program_tests.cpp

Reduce number of local classes deriving from Program

Change-Id: I713790c6ea0e034971fa90c6cb8f9c0a6bd6b6cd
This commit is contained in:
Maciej Dziuban
2018-08-06 11:07:12 +02:00
committed by sys_ocldev
parent 2711e19986
commit 72740fc048
4 changed files with 101 additions and 193 deletions

View File

@@ -258,7 +258,7 @@ bool Program::isValidLlvmBinary(
return retVal;
}
void Program::setSource(char *pSourceString) {
void Program::setSource(const char *pSourceString) {
sourceCode = pSourceString;
}

View File

@@ -174,7 +174,7 @@ class Program : public BaseObject<_cl_program> {
MOCKABLE_VIRTUAL cl_int processElfBinary(const void *pBinary, size_t binarySize, uint32_t &binaryVersion);
cl_int processSpirBinary(const void *pBinary, size_t binarySize, bool isSpirV);
void setSource(char *pSourceString);
void setSource(const char *pSourceString);
cl_int getSource(char *&pBinary, unsigned int &dataSize) const;