opensurgsim
Classes | Namespaces | Functions
InputManagerTest.cpp File Reference

Tests for the InputManaget class. More...

#include <memory>
#include <string>
#include <gtest/gtest.h>
#include "SurgSim/Framework/Runtime.h"
#include "SurgSim/Input/CommonDevice.h"
#include "SurgSim/Input/OutputProducerInterface.h"
#include "SurgSim/Input/InputManager.h"
#include "SurgSim/Input/InputComponent.h"
#include "SurgSim/Input/OutputComponent.h"
#include "SurgSim/DataStructures/DataGroup.h"
#include "SurgSim/DataStructures/DataGroupBuilder.h"
#include "SurgSim/Math/RigidTransform.h"
#include "SurgSim/Math/Matrix.h"
#include "SurgSim/Input/UnitTests/TestDevice.h"

Classes

class  MockComponent
 
class  SurgSim::Input::InputManagerTest
 

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::Input::TEST_F (InputManagerTest, DeviceAddRemove)
 
 SurgSim::Input::TEST_F (InputManagerTest, InputAddRemove)
 
 SurgSim::Input::TEST_F (InputManagerTest, InputfromDevice)
 
 SurgSim::Input::TEST_F (InputManagerTest, OutputAddRemove)
 
 SurgSim::Input::TEST_F (InputManagerTest, OutputPush)
 
 SurgSim::Input::TEST_F (InputManagerTest, TypeTest)
 

Detailed Description

Tests for the InputManaget class.

Note that InputManagerTest, the test fixture is declared as a friend class in InputManager to make it easier to test the add and removal of components, for this to work correctly PhysicsManagerTest is required to be in the SurgSim::Physics namespace.