opensurgsim
Classes | Namespaces | Functions
PhysicsManagerTests.cpp File Reference

Tests for the PhysicsManager class. More...

#include <gmock/gmock.h>
#include <string>
#include <memory>
#include "SurgSim/Collision/ShapeCollisionRepresentation.h"
#include "SurgSim/Framework/Runtime.h"
#include "SurgSim/Particles/SphRepresentation.h"
#include "SurgSim/Physics/ConstraintComponent.h"
#include "SurgSim/Physics/DeformableCollisionRepresentation.h"
#include "SurgSim/Physics/PhysicsManager.h"
#include "SurgSim/Physics/Representation.h"
#include "SurgSim/Physics/FixedRepresentation.h"
#include "SurgSim/Physics/UnitTests/MockObjects.h"
#include "SurgSim/Math/Vector.h"

Classes

class  SurgSim::Collision::MockContactFilter
 
class  SurgSim::Physics::PhysicsManagerTest
 

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::Physics::TEST_F (PhysicsManagerTest, InitTest)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, AddRemoveRepresentation)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, AddRemoveCollisionRepresentation)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, AddRemoveContactFilter)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, AddRemoveConstraintComponent)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, AddRemoveParticleRepresentation)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, SetComputations)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, RunCcd)
 
 SurgSim::Physics::TEST_F (PhysicsManagerTest, RunDcd)
 

Detailed Description

Tests for the PhysicsManager class.

Note that PhysicsManagerTest, the test fixture is declared as a friend class in PhysicsManager 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.