OpenMesh
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
21class 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
45class 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
Polygonal mesh based on the ArrayKernel.
Definition: PolyMesh_ArrayKernelT.hh:100
Base class for all traits.
Definition: Traits.hh:127
Triangle mesh based on the ArrayKernel.
Definition: TriMesh_ArrayKernelT.hh:100
Definition: unittests_common.hh:10
Definition: unittests_common.hh:21
Definition: unittests_common.hh:45

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