23 void TestEnvironment::SetUp()
27 argv[0] =
const_cast<char *
>(
"TestQApp");
28 argv[1] =
const_cast<char *
>(
"-platform");
29 argv[2] =
const_cast<char *
>(
"offscreen");
30 app =
new QApplication(argc, argv);
32 std::cout <<
"QT Application object initialized." << std::endl;
34 std::cout <<
"Unable to initialized QT application." << std::endl;
38 void TestEnvironment::TearDown()
43 int main(
int argc,
char *argv[])
45 ::testing::InitGoogleTest(&argc, argv);
47 return RUN_ALL_TESTS();