Ocean
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 
15 namespace Ocean
16 {
17 
18 namespace Test
19 {
20 
21 namespace TestTracking
22 {
23 
24 /**
25  * This class implements tests for the SimilarityTracker class.
26  * @ingroup testtracking
27  */
28 class OCEAN_TEST_TRACKING_EXPORT TestSimilarityTracker
29 {
30  public:
31 
32  /**
33  * Starts all tests for the similarity tracker class.
34  * @param testDuration Number of seconds for each test, with range (0, infinity)
35  * @param worker The worker object
36  * @return True, if succeeded
37  */
38  static bool test(const double testDuration, Worker& worker);
39 
40  /**
41  * Tests the general tracking quality.
42  * @param testDuration Number of seconds for each test, with range (0, infinity)
43  * @param worker The worker object
44  * @return True, if succeeded
45  */
46  static bool testTracking(const double testDuration, Worker& worker);
47 
48  /**
49  * Applies a stress test.
50  * @param testDuration Number of seconds for each test, with range (0, infinity)
51  * @param worker The worker object
52  * @return True, if succeeded
53  */
54  static bool testStressTest(const double testDuration, Worker& worker);
55 };
56 
57 }
58 
59 }
60 
61 }
62 
63 #endif // META_OCEAN_TEST_TESTTRACKING_TEST_SIMILARITY_TRACKER_H
This class implements tests for the SimilarityTracker class.
Definition: TestSimilarityTracker.h:29
static bool testTracking(const double testDuration, Worker &worker)
Tests the general tracking quality.
static bool test(const double testDuration, Worker &worker)
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