GTEST_API_ int main(int argc, char **argv) { QCoreApplication qca(argc, argv); FilesExist(); qsrand(time(NULL)); testing::InitGoogleTest(&argc, argv); Dissent::Init(); int res = RUN_ALL_TESTS(); FilesDelete(); return res; }
GTEST_API_ int main(int argc, char **argv) { QCoreApplication qca(argc, argv); CryptoFactory::GetInstance().SetThreading(CryptoFactory::MultiThreaded); Dissent::Crypto::AsymmetricKey::DefaultKeySize = 512; Logging::UseFile("test.log"); qDebug() << "Beginning tests"; FilesExist(); testing::InitGoogleTest(&argc, argv); int res = RUN_ALL_TESTS(); FilesDelete(); return res; }