Correct variable names to camelCase convention

Change-Id: I87c2435d57e50016ab0deb473e30c230424dead7
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-03-12 07:54:21 +01:00
committed by sys_ocldev
parent 2213b8808f
commit 820f5ac17b
7 changed files with 38 additions and 38 deletions

View File

@ -52,14 +52,14 @@ struct EnqueueWriteBufferTypeTest : public CommandEnqueueFixture,
}
template <typename FamilyType>
void enqueueWriteBuffer(bool Blocking, void *InputData, int size) {
void enqueueWriteBuffer(bool blocking, void *inputData, int size) {
auto retVal = EnqueueWriteBufferHelper<>::enqueueWriteBuffer(
pCmdQ,
srcBuffer.get(),
Blocking,
blocking,
0,
size,
InputData);
inputData);
EXPECT_EQ(CL_SUCCESS, retVal);
}

View File

@ -29,7 +29,7 @@ struct CommandQueueHwFixture {
const cl_command_queue_properties *properties);
virtual void SetUp();
virtual void SetUp(ClDevice *_pDevice, cl_command_queue_properties properties);
virtual void SetUp(ClDevice *pDevice, cl_command_queue_properties properties);
virtual void TearDown();

View File

@ -348,7 +348,7 @@ struct EnqueueMapBufferHelper {
cl_uint numEventsInWaitList = Traits::numEventsInWaitList,
const cl_event *eventWaitList = Traits::eventWaitList,
cl_event *event = Traits::event,
cl_int *errcode_ret = Traits::errcodeRet) {
cl_int *errcodeRet = Traits::errcodeRet) {
size = size == static_cast<size_t>(-1) ? buffer->getSize() : size;
@ -364,8 +364,8 @@ struct EnqueueMapBufferHelper {
event,
retCode);
if (errcode_ret) {
*errcode_ret = retCode;
if (errcodeRet) {
*errcodeRet = retCode;
}
return retPtr;
}

View File

@ -29,38 +29,38 @@ class CCustomEventListener : public ::testing::TestEventListener {
}
private:
void OnTestProgramStart(const ::testing::UnitTest &unit_test) override {
void OnTestProgramStart(const ::testing::UnitTest &unitTest) override {
}
void OnTestIterationStart(
const ::testing::UnitTest &unit_test,
const ::testing::UnitTest &unitTest,
int iteration) override {
if (::testing::GTEST_FLAG(shuffle)) {
std::cout << "Iteration: " << iteration + 1 << ". random_seed: " << unit_test.random_seed() << std::endl;
std::cout << "Iteration: " << iteration + 1 << ". random_seed: " << unitTest.random_seed() << std::endl;
} else {
std::cout << "Iteration: " << iteration + 1 << std::endl;
std::cout << "Iteration: " << iteration + 1 << ". random_seed: " << unit_test.random_seed() << std::endl;
std::cout << "Iteration: " << iteration + 1 << ". random_seed: " << unitTest.random_seed() << std::endl;
}
this->currentSeed = unit_test.random_seed();
this->currentSeed = unitTest.random_seed();
}
void OnTestIterationEnd(const ::testing::UnitTest &unit_test,
void OnTestIterationEnd(const ::testing::UnitTest &unitTest,
int iteration) override {
this->currentSeed = -1;
}
void OnEnvironmentsSetUpStart(const ::testing::UnitTest &unit_test) override {
void OnEnvironmentsSetUpStart(const ::testing::UnitTest &unitTest) override {
}
void OnEnvironmentsSetUpEnd(const ::testing::UnitTest &unit_test) override {
void OnEnvironmentsSetUpEnd(const ::testing::UnitTest &unitTest) override {
}
void OnTestCaseStart(const ::testing::TestCase &test_case) override {
void OnTestCaseStart(const ::testing::TestCase &testCase) override {
}
void OnTestStart(const ::testing::TestInfo &test_case) override {
void OnTestStart(const ::testing::TestInfo &testCase) override {
std::stringstream ss;
ss << test_case.test_case_name() << "." << test_case.name();
ss << testCase.test_case_name() << "." << testCase.name();
lastTest = ss.str();
}
@ -71,33 +71,33 @@ class CCustomEventListener : public ::testing::TestEventListener {
_listener->OnTestPartResult(test_part_result);
}
void OnTestEnd(const ::testing::TestInfo &test_case) override {
if (test_case.result()->Failed()) {
void OnTestEnd(const ::testing::TestInfo &testCase) override {
if (testCase.result()->Failed()) {
std::stringstream ss;
ss << test_case.test_case_name() << "." << test_case.name();
ss << testCase.test_case_name() << "." << testCase.name();
testFailures.push_back(std::make_pair(ss.str(), currentSeed));
std::cout << "[ FAILED ][ " << hardwarePrefix << " ][ " << currentSeed << " ] " << test_case.test_case_name() << "." << test_case.name() << std::endl;
std::cout << "[ FAILED ][ " << hardwarePrefix << " ][ " << currentSeed << " ] " << testCase.test_case_name() << "." << testCase.name() << std::endl;
}
}
void OnTestCaseEnd(const ::testing::TestCase &test_case) override {
void OnTestCaseEnd(const ::testing::TestCase &testCase) override {
}
void OnEnvironmentsTearDownStart(const ::testing::UnitTest &test_case) override {
void OnEnvironmentsTearDownStart(const ::testing::UnitTest &testCase) override {
}
void OnEnvironmentsTearDownEnd(const ::testing::UnitTest &test_case) override {
void OnEnvironmentsTearDownEnd(const ::testing::UnitTest &testCase) override {
}
void OnTestProgramEnd(const ::testing::UnitTest &unit_test) override {
int testsRun = unit_test.test_to_run_count();
int testsPassed = unit_test.successful_test_count();
int testsSkipped = unit_test.skipped_test_count();
int testsFailed = unit_test.failed_test_count();
int testsDisabled = unit_test.disabled_test_count();
auto timeElapsed = static_cast<int>(unit_test.elapsed_time());
void OnTestProgramEnd(const ::testing::UnitTest &unitTest) override {
int testsRun = unitTest.test_to_run_count();
int testsPassed = unitTest.successful_test_count();
int testsSkipped = unitTest.skipped_test_count();
int testsFailed = unitTest.failed_test_count();
int testsDisabled = unitTest.disabled_test_count();
auto timeElapsed = static_cast<int>(unitTest.elapsed_time());
if (unit_test.Failed()) {
if (unitTest.Failed()) {
fprintf(
stdout,
"\n"
@ -133,7 +133,7 @@ class CCustomEventListener : public ::testing::TestEventListener {
fprintf(
stdout,
"[ FAILED ][ %s ][ %u ] %s\n", hardwarePrefix.c_str(), failure.second, failure.first.c_str());
if (unit_test.Failed())
if (unitTest.Failed())
fprintf(
stdout,
"\n");

View File

@ -27,14 +27,14 @@ struct MemoryManagementFixture {
void clearFailingAllocation(void);
::testing::AssertionResult assertLeak(
const char *leak_expr,
const char *leakExpr,
size_t leakIndex);
void checkForLeaks(void);
typedef std::function<void(size_t)> InjectedFunction;
void injectFailures(InjectedFunction &method, uint32_t maxIndex = 0);
void injectFailureOnIndex(InjectedFunction &method, uint32_t Index);
void injectFailureOnIndex(InjectedFunction &method, uint32_t index);
// Used to keep track of # of allocations prior at SetUp time
// Gets compared to # at TearDown time

View File

@ -35,7 +35,7 @@ class ProgramFixture {
void CreateProgramWithSource(cl_context pContext,
cl_device_id *pDeviceList,
const std::string &SourceFileName);
const std::string &sourceFileName);
protected:
virtual void SetUp() {

View File

@ -25,7 +25,7 @@ int ioctl(int fd, unsigned long int request, ...) throw();
extern int (*c_open)(const char *pathname, int flags, ...);
extern int (*openFull)(const char *pathname, int flags, ...);
extern int (*c_ioctl)(int __fd, unsigned long int __request, ...);
extern int (*c_ioctl)(int fd, unsigned long int request, ...);
extern int drmOtherRequests(unsigned long int request, va_list vl);