MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSDeviceTest.cpp
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#include "
mitkUSVideoDevice.h
"
14
#include "
mitkUSProbe.h
"
15
#include "mitkTestingMacros.h"
16
17
class
mitkUSDeviceTestClass
18
{
19
public
:
20
21
static
void
TestInstantiation
()
22
{
23
// let's create an object of our class
24
mitk::USVideoDevice::Pointer tempPointer = mitk::USVideoDevice::New(
"IllegalPath"
,
"Manufacturer"
,
"Model"
);
25
mitk::USDevice
* device = tempPointer.GetPointer();
26
MITK_TEST_CONDITION_REQUIRED(device,
"USDevice should not be null after instantiation"
);
27
//MITK_TEST_CONDITION_REQUIRED((device->GetDeviceManufacturer().compare("Manufacturer") == 0), "Manufacturer should be set correctly");
28
//MITK_TEST_CONDITION_REQUIRED((device->GetDeviceModel().compare("Model") == 0), "Model should be set correctly");
29
}
30
31
static
void
TestAddProbe
()
32
{
33
}
34
35
static
void
TestActivateProbe
()
36
{
37
}
38
};
39
43
int
mitkUSDeviceTest
(
int
/* argc */
,
char
*
/*argv*/
[])
44
{
45
MITK_TEST_BEGIN(
"mitkUSDeviceTest"
);
46
47
mitkUSDeviceTestClass::TestInstantiation
();
48
mitkUSDeviceTestClass::TestAddProbe
();
49
mitkUSDeviceTestClass::TestActivateProbe
();
50
51
MITK_TEST_END();
52
}
mitkUSDeviceTestClass
Definition
mitkUSDeviceTest.cpp:18
mitkUSDeviceTestClass::TestAddProbe
static void TestAddProbe()
Definition
mitkUSDeviceTest.cpp:31
mitkUSDeviceTestClass::TestActivateProbe
static void TestActivateProbe()
Definition
mitkUSDeviceTest.cpp:35
mitkUSDeviceTestClass::TestInstantiation
static void TestInstantiation()
Definition
mitkUSDeviceTest.cpp:21
mitk::USDevice
A device holds information about it's model, make and the connected probes. It is the common super cl...
Definition
mitkUSDevice.h:76
mitkUSDeviceTest
int mitkUSDeviceTest(int, char *[])
Definition
mitkUSDeviceTest.cpp:43
mitkUSProbe.h
mitkUSVideoDevice.h
Modules
US
Testing
mitkUSDeviceTest.cpp
Generated by
1.12.0