下载地址:
下载地址1(本站为飞网专业下载站,域名:down.cfei.net)
资源简介:
class GmockdemoTest : public QObject{ Q_OBJECTpublic: GmockdemoTest();private Q_SLOTS: void testCase1();};GmockdemoTest::GmockdemoTest(){}void GmockdemoTest::testCase1(){ MockProduct product; EXPECT_CALL(product, id()). Times(4). WillOnce(testing::Return(2)). WillOnce(testing::Return(5)). WillOnce(testing::Return(3)). WillOnce(testing::Return(5)); Order order; int result = order.checkIn(product); QCOMPARE(result,10);
飞网下载站,免费下载共享资料,内容涉及教育资源、专业资料、IT资源、娱乐生活、经济管理、办公文书、游戏资料等。