Ocean
Loading...
Searching...
No Matches
TestSimilarityTracker.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_TESTTRACKING_TEST_SIMILARITY_TRACKER_H
9#define META_OCEAN_TEST_TESTTRACKING_TEST_SIMILARITY_TRACKER_H
10
12
14
16
17namespace Ocean
18{
19
20namespace Test
21{
22
23namespace TestTracking
24{
25
26/**
27 * This class implements tests for the SimilarityTracker class.
28 * @ingroup testtracking
29 */
30class OCEAN_TEST_TRACKING_EXPORT TestSimilarityTracker
31{
32 public:
33
34 /**
35 * Starts all tests for the similarity tracker class.
36 * @param testDuration Number of seconds for each test, with range (0, infinity)
37 * @param worker The worker object
38 * @param selector The test selector
39 * @return True, if succeeded
40 */
41 static bool test(const double testDuration, Worker& worker, const TestSelector& selector);
42
43 /**
44 * Tests the general tracking quality.
45 * @param testDuration Number of seconds for each test, with range (0, infinity)
46 * @param worker The worker object
47 * @return True, if succeeded
48 */
49 static bool testTracking(const double testDuration, Worker& worker);
50
51 /**
52 * Applies a stress test.
53 * @param testDuration Number of seconds for each test, with range (0, infinity)
54 * @param worker The worker object
55 * @return True, if succeeded
56 */
57 static bool testStressTest(const double testDuration, Worker& worker);
58};
59
60}
61
62}
63
64}
65
66#endif // META_OCEAN_TEST_TESTTRACKING_TEST_SIMILARITY_TRACKER_H
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
This class implements tests for the SimilarityTracker class.
Definition TestSimilarityTracker.h:31
static bool testTracking(const double testDuration, Worker &worker)
Tests the general tracking quality.
static bool test(const double testDuration, Worker &worker, const TestSelector &selector)
Starts all tests for the similarity tracker class.
static bool testStressTest(const double testDuration, Worker &worker)
Applies a stress test.
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
The namespace covering the entire Ocean framework.
Definition Accessor.h:15