当前位置: 首页>>代码示例>>C++>>正文


C++ TestRunner::PrintStatistics方法代码示例

本文整理汇总了C++中TestRunner::PrintStatistics方法的典型用法代码示例。如果您正苦于以下问题:C++ TestRunner::PrintStatistics方法的具体用法?C++ TestRunner::PrintStatistics怎么用?C++ TestRunner::PrintStatistics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TestRunner的用法示例。


在下文中一共展示了TestRunner::PrintStatistics方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: main

int main(int argc, char* argv[])
{
	using namespace KasperskyLicensing::Test;

	TestRunner tr;

//	tr.RunTest("InitializeLicensing::Normal",						Test_InitializeLicensing_Normal);
//	tr.RunTest("InitializeLicensing::BlackListIsCorrupted",			Test_InitializeLicensing_BlackListIsCorrupted);
//	tr.RunTest("InitializeLicensing::DailyAvcIsCorrupted",			Test_InitializeLicensing_DailyAvcIsCorrupted);
//	tr.RunTest("InitializeLicensing::DailyAvcIsLockedForRead",		Test_InitializeLicensing_DailyAvcIsLockedForRead);
//	tr.RunTest("InitializeLicensing::NoBlackList",					Test_InitializeLicensing_NoBlackList); //реестр базы создавался уже при отсутсвии black.lst.
//	tr.RunTest("InitializeLicensing::WrongInfoInXmlAbouDailyAvc",	Test_InitializeLicensing_WrongInfoInXmlAbouDailyAvc);
//	tr.RunTest("InitializeLicensing::DailyAvcIsCorrupted_TestKeyInBlackList",	Test_InitializeLicensing_DailyAvcIsCorrupted_TestKeyInBlackList);
//	tr.RunTest("SetContext::Normal",								Test_SetContext_Normal);
//	tr.RunTest("ParseLicenseKey::ValidKey",							Test_ParseLicenseKey_ValidKey);
//	tr.RunTest("ParseLicenseKey::WrongSignature",					Test_ParseLicenseKey_WrongSignature);
//	tr.RunTest("ParseLicenseKey::Non6Version",						Test_ParseLicenseKey_Non6Version);
//	tr.RunTest("ParseLicenseKey::WrongInfoThanSign",				Test_ParseLicenseKey_WrongInfoThanSign);
//	tr.RunTest("InstallLicenseKey::WrongProgramVersion",			Test_InstallLicenseKey_WrongProgramVersion);
//	tr.RunTest("InstallLicenseKey::ExpiredKey",						Test_InstallLicenseKey_ExpiredKey);
//	tr.RunTest("InstallLicenseKey::InBlackList",					Test_InstallLicenseKey_InBlackList);
//	tr.RunTest("InstallLicenseKey::WrongOL_product",				Test_InstallLicenseKey_WrongOL_product);
//	tr.RunTest("InstallLicenseKey::WrongOL_Application",			Test_InstallLicenseKey_WrongOL_Application);
//	tr.RunTest("InstallLicenseKey::WrongOL_Component",				Test_InstallLicenseKey_WrongOL_Component);
//	tr.RunTest("InstallLicenseKey::LocalizationId",					Test_InstallLicenseKey_LocalizationId);
//	tr.RunTest("InstallLicenseKey::SalesChannel",					Test_InstallLicenseKey_SalesChannel);
//	tr.RunTest("InstallLicenseKey::MarketSector",					Test_InstallLicenseKey_MarketSector);
//	tr.RunTest("InstallLicenseKey::Package",						Test_InstallLicenseKey_Package);
// 	tr.RunTest("InstallLicenseKey::WrongPlatform",					Test_InstallLicenseKey_WrongPlatform);
//	tr.RunTest("InstallLicenseKey::WriteAccess",					Test_InstallLicenseKey_WriteAccess);
//	tr.RunTest("InstallLicenseKey::AlreadyExists",					Test_InstallLicenseKey_AlreadyExists);
//	tr.RunTest("InstallLicenseKey::IdenticalSerials",				Test_InstallLicenseKey_IdenticalSerials);
//	tr.RunTest("Prepare for group of cases 'Uninstall Key'",		Test_InstallLicenseKey_TmpKey1);
//	tr.RunTest("UninstallLicenseKey::WriteAcces",					Test_UninstallLicenseKey_WriteAcces); //uninstal the key from Test_InstallLicenseKey_TmpKey1
//	tr.RunTest("UninstallLicenseKey::InvalidSerial",				Test_UninstallLicenseKey_InvalidSerial);
//	tr.RunTest("UninstallLicenseKey::SimpleUninstall",				Test_UninstallLicenseKey_SimpleUninstall); //uninstal the key from Test_InstallLicenseKey_TmpKey1
//	tr.RunTest("GetInstalledLicenseKeys::SimpleCase",				Test_GetInstalledLicenseKeys_SimpleCase);
//	tr.RunTest("GetInstalledLicenseKeys::OnlyKey22",				Test_GetInstalledLicenseKeys_OnlyKey22);
//	tr.RunTest("GetInstalledLicenseKeys::NoKeys",					Test_GetInstalledLicenseKeys_NoKeys);
//	tr.RunTest("Prepare for SimpleLO_true/false",					Test_InstallLicenseKey_TmpKey2);
//	tr.RunTest("CheckLicenseRestrictions::SimpleLO_true",			Test_CheckLicenseRestrictions_SimpleLO_true);
//	tr.RunTest("CheckLicenseRestrictions::SimpleLO_false",			Test_CheckLicenseRestrictions_SimpleLO_false);
	tr.RunTest("Prepare for IdNotif_ManyRestr (install 1st)",		Test_InstallLicenseKey_TmpKey3);
//	tr.RunTest("CheckLicenseRestrictions::IdNotif_ManyRestr",		Test_CheckLicenseRestrictions_IdNotif_ManyRestr);
//	tr.RunTest("CheckLicenseRestrictions::IdNotif_1Key",			Test_CheckLicenseRestrictions_IdNotif_1Key);
	tr.RunTest("Prepare for IdNotif_2KeyDifferentID (install 2d)",	Test_InstallLicenseKey_TmpKey5);
//	tr.RunTest("CheckLicenseRestrictions::IdNotif_2KeyDifferentID",	Test_CheckLicenseRestrictions_IdNotif_2KeyDifferentID);
//	tr.RunTest("CheckLicenseRestrictions::IdNotif_2KeySameID",		Test_CheckLicenseRestrictions_IdNotif_2KeySameID);
	tr.RunTest("CheckLicenseRestrictions::CheckAdditivity",			Test_CheckLicenseRestrictions_CheckAdditivity);
//	tr.RunTest("CheckLicenseRestrictions::CheckVariables_NoBlackList",							Test_CheckLicenseRestrictions_CheckVariables_NoBlackList);
//	tr.RunTest("CheckLicenseRestrictions::CheckVariables_CorruptedBases",						Test_CheckLicenseRestrictions_CheckVariables_CorruptedBases);
//	tr.RunTest("Prepare for CheckVariables_SerialInBlackList (install simple(InBlackList))",	Test_InstallLicenseKey_TmpKey8);
//	tr.RunTest("CheckLicenseRestrictions::CheckVariables_SerialInBlackList",					Test_CheckLicenseRestrictions_CheckVariables_SerialInBlackList);
//	tr.RunTest("CheckLicenseRestrictions::CheckVariables_Other",	Test_CheckLicenseRestrictions_CheckVariables_Other);
//	tr.RunTest("CheckLicenseRestrictions::CheckCondition",			Test_CheckLicenseRestrictions_CheckCondition);
//	tr.RunTest("CheckLicenseRestrictions::CheсkFormula",			Test_CheckLicenseRestrictions_CheckFormula);


	cout << endl;
	
	tr.PrintStatistics(cout);

	return 0;
}
开发者ID:hackshields,项目名称:antivirus,代码行数:64,代码来源:LicensingTest.cpp


注:本文中的TestRunner::PrintStatistics方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。