/*! * * Copyright (c) 2019-2020 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 * \date 01/07/2019 * \author Behrouz NematiPour * */ #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 logError(); void logDatum(); void logUnknown(); void logError_gDisableUnhandledReport_False(); void logError_gDisableUnhandledReport_True (); void logError_Unhandled_TreatmentState(); void setLogPath_F(); void setLogPath_T(); void readUnknown(); };