OpenMesh
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
unittests_common.hh
1 #ifndef INCLUDE_UNITTESTS_COMMON_HH
2 #define INCLUDE_UNITTESTS_COMMON_HH
3 
4 #include <gtest/gtest.h>
5 #include <OpenMesh/Core/IO/MeshIO.hh>
6 
7 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
8 #include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
9 
11 };
12 
14 
16 
17 /*
18  * Simple test setting.
19  */
20 
21 class OpenMeshBase : public testing::Test {
22 
23  protected:
24 
25  // This function is called before each test is run
26  virtual void SetUp() {
27 
28  // Do some initial stuff with the member data here...
29  }
30 
31  // This function is called after all tests are through
32  virtual void TearDown() {
33 
34  // Do some final stuff with the member data here...
35  }
36 
37  // This member will be accessible in all tests
38  Mesh mesh_;
39 };
40 
41 /*
42  * Simple test setting.
43  */
44 
45 class OpenMeshBasePoly : public testing::Test {
46 
47  protected:
48 
49  // This function is called before each test is run
50  virtual void SetUp() {
51 
52  // Do some initial stuff with the member data here...
53  }
54 
55  // This function is called after all tests are through
56  virtual void TearDown() {
57 
58  // Do some final stuff with the member data here...
59  }
60 
61  // This member will be accessible in all tests
62  PolyMesh mesh_;
63 };
64 
65 
66 
67 #endif // INCLUDE GUARD
Definition: unittests_common.hh:45
Definition: unittests_common.hh:21
Definition: unittests_common.hh:10
Triangle mesh based on the ArrayKernel.
Definition: TriMesh_ArrayKernelT.hh:98
Polygonal mesh based on the ArrayKernel.
Definition: PolyMesh_ArrayKernelT.hh:98
Base class for all traits.
Definition: Traits.hh:126

Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .