1 #include "gmock/gmock.h" 2 3 #include <QApplication> 4 main(int argc,char * argv[])5 int main(int argc, char *argv[]) { 6 QApplication a( argc, argv ); 7 ::testing::InitGoogleTest(&argc, argv); 8 int iReturn = RUN_ALL_TESTS(); 9 10 // qDebug()<<"rcode:"<<iReturn; 11 12 return a.exec(); 13 } 14