[traffic] Introduce test mode for traffic manager

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-06-06 18:08:46 +03:00
parent 5531b1129b
commit ba9980ba36
5 changed files with 113 additions and 24 deletions

View File

@@ -98,11 +98,22 @@ class Loader;
/// build version for screenshots.
//#define FIXED_LOCATION
/**
* @brief Initialization parameters for the framework.
*
* `FrameworkParams` is intended for parameters which are hardcoded rather than read from a
* configuration. It allows test cases to run on a tailored configuration.
*/
struct FrameworkParams
{
bool m_enableDiffs = true;
size_t m_numSearchAPIThreads = 1;
/**
* @brief Whether the traffic manager should start in test mode.
*/
bool m_trafficTestMode = false;
FrameworkParams() = default;
FrameworkParams(bool enableDiffs)
: m_enableDiffs(enableDiffs)