mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
ULT: remove gmock WA from opencl/shared tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
bb2967d2c6
commit
e1c7e194ee
@ -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;
|
||||
|
Reference in New Issue
Block a user