Test harness updates 42/254342/3
authorDavid Steele <david.steele@samsung.com>
Fri, 26 Feb 2021 17:27:10 +0000 (17:27 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Sat, 27 Feb 2021 00:18:22 +0000 (00:18 +0000)
Change-Id: I70deadb6518fc66077b2a5d2517479d1b1566c32

automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp
automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.cpp
automated-tests/src/dali/dali-test-suite-utils/test-graphics-program.h

index 9913886..adacc11 100644 (file)
@@ -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<TestGraphicsProgram>(&program);
+  return graphicsProgram->GetParameter(parameterId, outData);
 }
 
 } // namespace Dali
index db5a9f7..1b23380 100644 (file)
@@ -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<uint32_t*>(outData)[0] = mId;
+  return true;
+}
+
+
+
 } // namespace Dali
index 2bd04de..d5f5b85 100644 (file)
@@ -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;
 };