Showing the changes to libraries/script-engine/src/StackTestScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -0,0 +1,31 @@ | ||
| 1 | +// | |
| 2 | +// StackTestScriptingInterface.cpp | |
| 3 | +// libraries/script-engine/src | |
| 4 | +// | |
| 5 | +// Created by Clement Brisset on 7/25/18. | |
| 6 | +// Copyright 2018 High Fidelity, Inc. | |
| 7 | +// | |
| 8 | +// Distributed under the Apache License, Version 2.0. | |
| 9 | +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
| 10 | +// | |
| 11 | + | |
| 12 | +#include "StackTestScriptingInterface.h" | |
| 13 | + | |
| 14 | +#include <QLoggingCategory> | |
| 15 | +#include <QCoreApplication> | |
| 16 | + | |
| 17 | +Q_DECLARE_LOGGING_CATEGORY(stackTest) | |
| 18 | +Q_LOGGING_CATEGORY(stackTest, "hifi.tools.stack-test") | |
| 19 | + | |
| 20 | +void StackTestScriptingInterface::pass(QString message) { | |
| 21 | + qCInfo(stackTest) << "PASS" << qPrintable(message); | |
| 22 | +} | |
| 23 | + | |
| 24 | +void StackTestScriptingInterface::fail(QString message) { | |
| 25 | + qCInfo(stackTest) << "FAIL" << qPrintable(message); | |
| 26 | +} | |
| 27 | + | |
| 28 | +void StackTestScriptingInterface::exit(QString message) { | |
| 29 | + qCInfo(stackTest) << "COMPLETE" << qPrintable(message); | |
| 30 | + qApp->exit(); | |
| 31 | +} | |