示例#1
0
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;
}
示例#2
0
文件: MainTest.cpp 项目: nya2/Dissent
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;
}