1 #ifndef INCLUDE_UNITTESTS_COMMON_HH 2 #define INCLUDE_UNITTESTS_COMMON_HH 4 #include <gtest/gtest.h> 6 #include <OpenVolumeMesh/Mesh/PolyhedralMesh.hh> 7 #include <OpenVolumeMesh/Mesh/HexahedralMesh.hh> 8 #include <OpenVolumeMesh/Mesh/TetrahedralMesh.hh> 9 #include <OpenVolumeMesh/Geometry/VectorT.hh> 11 #define EXPECT_HANDLE_EQ(a, b) EXPECT_EQ((a).idx(), (b).idx()) 12 #define EXPECT_HANDLE_NE(a, b) EXPECT_NE((a).idx(), (b).idx()) 33 virtual void SetUp() {
36 mesh_.enable_deferred_deletion(
false);
37 mesh_.enable_fast_deletion(
false);
41 virtual void TearDown() {
71 virtual void SetUp() {
74 mesh_.enable_deferred_deletion(
false);
75 mesh_.enable_fast_deletion(
false);
79 virtual void TearDown() {
110 virtual void SetUp() {
113 mesh_.enable_deferred_deletion(
false);
114 mesh_.enable_fast_deletion(
false);
118 virtual void TearDown() {
134 explicit Print(
bool _mute =
false) : mute_(_mute) {}
135 void mute(
bool _mute) { mute_ = _mute; }
136 bool mute()
const {
return mute_; }
138 if(!mute_) std::cerr <<
"Handle: " << _h.idx() << std::endl;
144 #endif // INCLUDE GUARD