/*! * * Copyright (c) 2020-2025 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file tst_logging.h * \author (last) Behrouz NematiPour * \date (last) 22-Feb-2024 * \author (original) Behrouz NematiPour * \date (original) 08-Jan-2020 * */ #pragma once #include #include class tst_logging : public QObject { Q_OBJECT bool _emited = false ; QByteArray _expected {} ; QVariantList _data {} ; int _action = -1 ; public: explicit tst_logging(QObject *parent = nullptr); private slots: // will be called before the first test function is executed. void initTestCase(); // will be called after every test function. void cleanup(); void init(); void logEvent(); void logDatum(); void logError(); void logUnknown(); void logError_gDisableUnhandledReport_False(); void logError_gDisableUnhandledReport_True (); void logError_Unhandled_TreatmentStates(); void setLogPath_F(); void setLogPath_T(); void setLogPath_TreatmentType(); void tst_log_function_extraCases(); void tst_enableConsoleOut(); void readUnknown(); };