opensurgsim
|
Tests for the Graphics Manager class. More...
#include "SurgSim/Framework/BasicSceneElement.h"
#include "SurgSim/Framework/Runtime.h"
#include "SurgSim/Framework/Scene.h"
#include "SurgSim/Framework/Component.h"
#include "SurgSim/Framework/ComponentManager.h"
#include "SurgSim/Graphics/UnitTests/MockObjects.h"
#include <gtest/gtest.h>
#include <algorithm>
Classes | |
class | GraphicsManagerTest |
Namespaces | |
SurgSim | |
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui needs glew but we need to call glewInit() from a osg callback, using this call we avoid getting warnings about redefinitions. | |
Functions | |
SurgSim::Graphics::TEST_F (GraphicsManagerTest, InitTest) | |
SurgSim::Graphics::TEST_F (GraphicsManagerTest, StartUpTest) | |
SurgSim::Graphics::TEST_F (GraphicsManagerTest, AddRemoveTest) | |
SurgSim::Graphics::TEST_F (GraphicsManagerTest, UpdateTest) | |
Tests for the Graphics Manager class.
SurgSim::Graphics::TEST_F | ( | GraphicsManagerTest | , |
StartUpTest | |||
) |
Run the thread for a moment
Check that the manager did update when the thread was running
SurgSim::Graphics::TEST_F | ( | GraphicsManagerTest | , |
AddRemoveTest | |||
) |
Perform add and remove from a pointer to a ComponentManager to check that the intended polymorphism is working.
Add an representation
Add a view
Add another view
Add another representation
There should be another group in there now
Try to add a duplicate representation the public interface functions addComponent and removeComponent always return true when the allocation succeeded
Try to add a duplicate view
Try to add a component that is not graphics-related
Remove a view
Remove an representation
Try to remove an representation that is not in the manager
Try to remove a view that is not in the manager
Try to remove a component that is not graphics-related