opensurgsim
|
Tests for the ViewElement class. More...
#include "SurgSim/Graphics/ViewElement.h"
#include "SurgSim/Graphics/UnitTests/MockObjects.h"
#include "SurgSim/Framework/Runtime.h"
#include "SurgSim/Framework/Scene.h"
#include "SurgSim/Input/CommonDevice.h"
#include <gtest/gtest.h>
Classes | |
class | SurgSim::Graphics::MockViewElement |
Concrete ViewElement subclass for testing. More... | |
class | SurgSim::Graphics::NotMockView |
View class for testing adding a non-MockView. More... | |
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 (ViewElementTests, InitTest) | |
SurgSim::Graphics::TEST (ViewElementTests, StartUpTest) | |
SurgSim::Graphics::TEST (ViewElementTests, ViewTest) | |
Tests for the ViewElement class.
SurgSim::Graphics::TEST | ( | ViewElementTests | , |
StartUpTest | |||
) |
Add a graphics component to the scene
Run the thread for a moment
Check that the view element was initialized and awoken
Check that the view element was initialized and retired again
SurgSim::Graphics::TEST | ( | ViewElementTests | , |
ViewTest | |||
) |
Setting a MockView should succeed