From: David Steele Date: Fri, 26 Feb 2021 17:27:10 +0000 (+0000) Subject: Test harness updates X-Git-Tag: graphics-backend-pre-release-2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F254342%2F3;p=platform%2Fcore%2Fuifw%2Fdali-core.git Test harness updates Change-Id: I70deadb6518fc66077b2a5d2517479d1b1566c32 --- diff --git a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp index 9913886..adacc11 100644 --- a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp +++ b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp @@ -792,7 +792,8 @@ bool TestGraphicsController::PipelineEquals(const Graphics::Pipeline& pipeline0, bool TestGraphicsController::GetProgramParameter(Graphics::Program& program, uint32_t parameterId, void* outData ) { mCallStack.PushCall("GetProgramParameter", ""); - return false; + auto graphicsProgram = Uncast(&program); + return graphicsProgram->GetParameter(parameterId, outData); } } // namespace Dali diff --git a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.cpp b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.cpp index db5a9f7..1b23380 100644 --- a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.cpp +++ b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.cpp @@ -23,6 +23,15 @@ TestGraphicsProgram::TestGraphicsProgram(TestGlAbstraction& gl, const Graphics:: mCreateInfo(createInfo), mReflection(gl, vertexFormats) { + mId = 0;//mGl.CreateProgram(); } +bool TestGraphicsProgram::GetParameter(uint32_t parameterId, void* outData ) +{ + reinterpret_cast(outData)[0] = mId; + return true; +} + + + } // namespace Dali diff --git a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.h b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.h index 2bd04de..d5f5b85 100644 --- a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.h +++ b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.h @@ -42,8 +42,11 @@ public: return mReflection; } + bool GetParameter(uint32_t parameterId, void* outData ); + public: TestGlAbstraction& mGl; + uint32_t mId; Graphics::ProgramCreateInfo mCreateInfo; TestGraphicsReflection mReflection; };