MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSDeviceTest.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#include "mitkUSVideoDevice.h"
14#include "mitkUSProbe.h"
15#include "mitkTestingMacros.h"
16
18{
19public:
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
43int mitkUSDeviceTest(int /* argc */, char* /*argv*/[])
44{
45 MITK_TEST_BEGIN("mitkUSDeviceTest");
46
50
51 MITK_TEST_END();
52}
static void TestActivateProbe()
static void TestInstantiation()
A device holds information about it's model, make and the connected probes. It is the common super cl...
int mitkUSDeviceTest(int, char *[])