Run clang-format over all project C/C++ source and header files (.c, .cpp, .cc, .h, .hpp, .hh, .m, .mm) under app/ and tests/. Non-source files (svg, qm, qrc, etc.) were not touched.
17 lines
377 B
C++
17 lines
377 B
C++
#include <gtest/gtest.h>
|
|
|
|
#include "common/debug.h"
|
|
|
|
TEST(CommonDebug, DebugHandlerFormatsAllLevels)
|
|
{
|
|
// Install handler and restore after test
|
|
QtMessageHandler old = qInstallMessageHandler(olive::DebugHandler);
|
|
|
|
qDebug() << "debug message";
|
|
qInfo() << "info message";
|
|
qWarning() << "warning message";
|
|
qCritical() << "critical message";
|
|
|
|
qInstallMessageHandler(old);
|
|
}
|