Skip to content

Commit

Permalink
Fixed merge
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Sep 13, 2023
1 parent a5053c2 commit d69b899
Showing 1 changed file with 58 additions and 40 deletions.
98 changes: 58 additions & 40 deletions src/Camera_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class CameraTest : public testing::Test,

/// \brief Test setting visibility mask
public: void VisibilityMask(const std::string &_renderEngine);

/// \brief Test setting intrinsic matrix
public: void IntrinsicMatrix(const std::string &_renderEngine);
};

/////////////////////////////////////////////////
Expand Down Expand Up @@ -367,48 +370,17 @@ void CameraTest::VisibilityMask(const std::string &_renderEngine)
}

/////////////////////////////////////////////////
TEST_P(CameraTest, ViewProjectionMatrix)
{
ViewProjectionMatrix(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, RenderTexture)
{
RenderTexture(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, TrackFollow)
{
TrackFollow(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, AddRemoveRenderPass)
void CameraTest::IntrinsicMatrix(const std::string &_renderEngine)
{
AddRemoveRenderPass(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, VisibilityMask)
{
VisibilityMask(GetParam());
}

INSTANTIATE_TEST_CASE_P(Camera, CameraTest,
RENDER_ENGINE_VALUES,
PrintToStringParam());

int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
igndbg << "Engine '" << _renderEngine
<< "' is not supported" << std::endl;
return;
}

/////////////////////////////////////////////////
TEST_F(CameraTest, IntrinsicMatrix)
{
ScenePtr scene = engine->CreateScene("scene");
ASSERT_NE(nullptr, scene);

Expand Down Expand Up @@ -472,3 +444,49 @@ TEST_F(CameraTest, IntrinsicMatrix)
// Clean up
engine->DestroyScene(scene);
}

/////////////////////////////////////////////////
TEST_P(CameraTest, ViewProjectionMatrix)
{
ViewProjectionMatrix(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, RenderTexture)
{
RenderTexture(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, TrackFollow)
{
TrackFollow(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, AddRemoveRenderPass)
{
AddRemoveRenderPass(GetParam());
}

/////////////////////////////////////////////////
TEST_P(CameraTest, VisibilityMask)
{
VisibilityMask(GetParam());
}

/////////////////////////////////////////////////
TEST_F(CameraTest, IntrinsicMatrix)
{
IntrinsicMatrix(GetParam());
}

INSTANTIATE_TEST_CASE_P(Camera, CameraTest,
RENDER_ENGINE_VALUES,
PrintToStringParam());

int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

0 comments on commit d69b899

Please sign in to comment.