mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-04-21 11:38:16 +00:00
39
tests/unit_tests/idl_compiler/includes.h
Normal file
39
tests/unit_tests/idl_compiler/includes.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#ifndef INCLUDES_H
|
||||
#define INCLUDES_H
|
||||
|
||||
#include "../../include/gtest_custom.h"
|
||||
|
||||
/**
|
||||
* @brief This project implements its own GetObject function.
|
||||
*/
|
||||
#define SDV_CUSTOM_GETOBJECT
|
||||
|
||||
#include "../../../sdv_executables/sdv_idl_compiler/logger.h"
|
||||
|
||||
/**
|
||||
* @brief For testing purposes, enable the verbosity mode.
|
||||
*/
|
||||
inline void EnableVerbosityMode()
|
||||
{
|
||||
g_log_control.SetVerbosityMode(EVerbosityMode::report_all);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief For testing purposes, disable the verbosity mode.
|
||||
*/
|
||||
inline void DisableVerbosityMode()
|
||||
{
|
||||
g_log_control.SetVerbosityMode(EVerbosityMode::report_errors);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief For testing purposes, enable the verbosity mode within local scope.
|
||||
*/
|
||||
class CVerbosityMode
|
||||
{
|
||||
public:
|
||||
CVerbosityMode() {EnableVerbosityMode();}
|
||||
~CVerbosityMode() {DisableVerbosityMode();}
|
||||
};
|
||||
|
||||
#endif // !defined INCLUDES_H
|
||||
Reference in New Issue
Block a user