ULT: remove gmock WA from opencl/shared tests

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-09-02 16:12:59 +02:00
committed by Compute-Runtime-Automation
parent bb2967d2c6
commit e1c7e194ee
2 changed files with 2 additions and 32 deletions

View File

@ -31,7 +31,6 @@
#include "opencl/test/unit_test/mocks/mock_program.h"
#include "opencl/test/unit_test/ult_config_listener.h"
#include "gmock/gmock.h"
#include "hw_cmds_default.h"
#include "test_files_setup.h"
@ -90,20 +89,6 @@ void applyWorkarounds() {
int val;
ss >> val;
}
{
class BaseClass {
public:
int method(int param) { return 1; }
};
class MockClass : public BaseClass {
public:
MOCK_METHOD1(method, int(int param));
};
::testing::NiceMock<MockClass> mockObj;
EXPECT_CALL(mockObj, method(::testing::_))
.Times(1);
mockObj.method(2);
}
//intialize rand
srand(static_cast<unsigned int>(time(nullptr)));
@ -191,7 +176,7 @@ int main(int argc, char **argv) {
}
}
::testing::InitGoogleMock(&argc, argv);
::testing::InitGoogleTest(&argc, argv);
HardwareInfo hwInfoForTests = DEFAULT_TEST_PLATFORM::hwInfo;
uint32_t euPerSubSlice = 0;