Developer Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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
10
struct
CustomTraits
:
public
OpenMesh::DefaultTraits
{
11
};
12
13
typedef
OpenMesh::TriMesh_ArrayKernelT<CustomTraits>
Mesh
;
14
15
typedef
OpenMesh::PolyMesh_ArrayKernelT<CustomTraits>
PolyMesh
;
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
OpenMeshBasePoly
Definition:
unittests_common.hh:45
OpenMesh::PolyMesh_ArrayKernelT
Definition:
PolyMesh_ArrayKernelT.hh:98
OpenMeshBase
Definition:
unittests_common.hh:21
OpenMesh::TriMesh_ArrayKernelT< CustomTraits >
PolyMesh
OpenMesh::PolyMesh_ArrayKernelT< PolyTraits > PolyMesh
Simple Name for Mesh.
Definition:
PolyMeshTypes.hh:90
CustomTraits
Definition:
BSP_test.cc:56
OpenMesh::DefaultTraits
Definition:
Traits.hh:126
libs_required
OpenMesh
src
Unittests
unittests_common.hh
Generated on Wed Jul 13 2016 13:36:22 for Developer Documentation by
1.8.8