mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-07-01 21:25:11 +00:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/********************************************************************************
|
|
* Copyright (c) 2025-2026 ZF Friedrichshafen AG
|
|
*
|
|
* This program and the accompanying materials are made available under the
|
|
* terms of the Apache License Version 2.0 which is available at
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Contributors:
|
|
* Erik Verhoeven - initial API and implementation
|
|
********************************************************************************/
|
|
|
|
#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
|