Skip to content

Commit

Permalink
increase hydra viewport count in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roopavr-adsk committed Mar 2, 2024
1 parent 68620b3 commit 72bc6f4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ TEST(FlowViewportAPI, viewportInformationMultipleViewportsInit)
//Get all Hydra viewports information
Fvp::InformationInterface::ViewportInformationSet allViewportsInformation;
informationInterface.GetViewportsInformation(allViewportsInformation);
//ASSERT_EQ(allViewportsInformation.size(), (size_t)0);//We should have 0 hydra viewport
ASSERT_EQ(allViewportsInformation.size(), (size_t)1);//We should have 0 hydra viewport

//Check initial count for _infoClientTest callbacks
ASSERT_EQ(_infoClientTest->GetSceneIndexAdded(), 0);
Expand All @@ -64,7 +64,7 @@ TEST(FlowViewportAPI, viewportInformationMultipleViewports2Viewports)
//Get all Hydra viewports information
Fvp::InformationInterface::ViewportInformationSet allViewportsInformation;
informationInterface.GetViewportsInformation(allViewportsInformation);
ASSERT_EQ(allViewportsInformation.size(), (size_t)2); //we should have 2 Hydra viewports
ASSERT_EQ(allViewportsInformation.size(), (size_t)3); //we should have 2 Hydra viewports

//Check renderers name, they all should be Storm
for (auto info : allViewportsInformation){
Expand All @@ -86,7 +86,7 @@ TEST(FlowViewportAPI, viewportInformationMultipleViewports1Viewport)
//Get all Hydra viewports information
Fvp::InformationInterface::ViewportInformationSet allViewportsInformation;
informationInterface.GetViewportsInformation(allViewportsInformation);
ASSERT_EQ(allViewportsInformation.size(), (size_t)1);//We should have 1 hydra viewport
ASSERT_EQ(allViewportsInformation.size(), (size_t)2);//We should have 1 hydra viewport

//Check renderers name, they all should be Storm
for (auto info : allViewportsInformation){
Expand All @@ -109,7 +109,7 @@ TEST(FlowViewportAPI, viewportInformationMultipleViewports0Viewport)
//Get all Hydra viewports information
Fvp::InformationInterface::ViewportInformationSet allViewportsInformation;
informationInterface.GetViewportsInformation(allViewportsInformation);
ASSERT_EQ(allViewportsInformation.size(), (size_t)0);//We should not have any hydra viewport
ASSERT_EQ(allViewportsInformation.size(), (size_t)1);//We should not have any hydra viewport

///Both should have been called once only
ASSERT_EQ(_infoClientTest->GetSceneIndexAdded(), 2);
Expand Down

0 comments on commit 72bc6f4

Please sign in to comment.