Add Test google mock

for imitating QET on tests (a file, a netwerk link, ...)
This commit is contained in:
Simon De Backer
2020-12-09 10:48:38 +01:00
parent d89d1088a3
commit 4de9c1d922
6 changed files with 236 additions and 0 deletions

15
tests/googlemock/main.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <QtGui/QGuiApplication>
#include <gmock/gmock.h>
int main(int argc, char** argv)
{
QGuiApplication app(argc, argv);
// disable the whole debug output (we want only the output from gtest)
// Debug::instance()->setDebugLevelLogFile(Debug::DebugLevel_t::Nothing);
// Debug::instance()->setDebugLevelStderr(Debug::DebugLevel_t::Nothing);
// init gtest and run all tests
::testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();
}