Ocean
Loading...
Searching...
No Matches
TestInputDataSerializer.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_TEST_TESTIO_TESTSERIALIZATION_TEST_INPUT_DATA_SERIALIZER_H
9#define META_OCEAN_TEST_TESTIO_TESTSERIALIZATION_TEST_INPUT_DATA_SERIALIZER_H
10
12
14
16
18
19namespace Ocean
20{
21
22namespace Test
23{
24
25namespace TestIO
26{
27
28namespace TestSerialization
29{
30
31/**
32 * This class implements a test for the InputDataSerializer class.
33 * @ingroup testioserialization
34 */
35class OCEAN_TEST_IO_SERIALIZATION_EXPORT TestInputDataSerializer
36{
37 public:
38
39 /**
40 * Tests all functions of the InputDataSerializer class.
41 * @param testDuration The number of seconds for each test
42 * @param selector The test selector
43 * @return True, if succeeded
44 */
45 static bool test(const double testDuration, const TestSelector& selector);
46
47 /**
48 * Tests registering factory functions.
49 * @return True, if succeeded
50 */
51 static bool testFactoryFunction();
52
53 /**
54 * Tests the start/stop functionality.
55 * @param testDuration The number of seconds for each test
56 * @return True, if succeeded
57 */
58 static bool testStartStop(const double testDuration);
59
60 /**
61 * Tests the sample() method for retrieving samples.
62 * @param testDuration The number of seconds for each test
63 * @return True, if succeeded
64 */
65 static bool testSample(const double testDuration);
66};
67
68}
69
70}
71
72}
73
74}
75
76#endif // META_OCEAN_TEST_TESTIO_TESTSERIALIZATION_TEST_INPUT_DATA_SERIALIZER_H
This class implements a test for the InputDataSerializer class.
Definition TestInputDataSerializer.h:36
static bool testSample(const double testDuration)
Tests the sample() method for retrieving samples.
static bool test(const double testDuration, const TestSelector &selector)
Tests all functions of the InputDataSerializer class.
static bool testFactoryFunction()
Tests registering factory functions.
static bool testStartStop(const double testDuration)
Tests the start/stop functionality.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15