Ocean
Ocean Test Devices Library

The Ocean Test Devices Library provides several functions to test the performance and validation of the Devices functionalities. More...

Collaboration diagram for Ocean Test Devices Library:

Data Structures

class  Ocean::Test::TestDevices::TestGPSTracker
 This class implements tests for the GPSTracker class. More...
 

Functions

OCEAN_TEST_DEVICES_EXPORT bool Ocean::Test::TestDevices::testDevices (const double testDuration, Worker &worker, const std::string &testFunctions=std::string())
 Tests the entire Devices library. More...
 
OCEAN_TEST_DEVICES_EXPORT void Ocean::Test::TestDevices::testDevicesAsynchron (const double testDuration, const std::string &testFunctions=std::string())
 Tests the entire Devices library. More...
 

Detailed Description

The Ocean Test Devices Library provides several functions to test the performance and validation of the Devices functionalities.

The library is platform independent.

Function Documentation

◆ testDevices()

OCEAN_TEST_DEVICES_EXPORT bool Ocean::Test::TestDevices::testDevices ( const double  testDuration,
Worker worker,
const std::string &  testFunctions = std::string() 
)

Tests the entire Devices library.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object to distribute some computation on as many CPU cores as defined in the worker object
testFunctionsOptional name of the functions to be tested
Returns
True, if the entire test succeeded

◆ testDevicesAsynchron()

OCEAN_TEST_DEVICES_EXPORT void Ocean::Test::TestDevices::testDevicesAsynchron ( const double  testDuration,
const std::string &  testFunctions = std::string() 
)

Tests the entire Devices library.

This function returns directly as the actual test is invoked in an own thread.
This function is intended for non-console applications like e.g., mobile devices.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
testFunctionsOptional name of the functions to be tested