📄 process_module_sequence_unittest_.h
字号:
#if !defined(WINSTL_INCL_WINSTL_SYSTEM_HPP_PROCESS_MODULE_SEQUENCE)
# error This file cannot be directly included, and should only be included within winstl/system/process_module_sequence.hpp
#endif /* !WINSTL_INCL_WINSTL_SYSTEM_HPP_PROCESS_MODULE_SEQUENCE */
#if !defined(STLSOFT_UNITTEST)
# error This file cannot be included when not unit-testing STLSoft
#endif /* !STLSOFT_UNITTEST */
namespace unittest
{
namespace
{
ss_bool_t test_winstl_system_process_module_sequence(unittest_reporter *r)
{
using stlsoft::unittest::unittest_initialiser;
using stlsoft::null_exception_policy;
ss_bool_t bSuccess = true;
unittest_initialiser init(r, "WinSTL", "system/process_module_sequence", __FILE__);
winstl::process_module_sequence pids(::GetCurrentProcess());
winstl::process_module_sequence pids2(pids);
if(pids.size() != pids2.size())
{
r->report("process_module_sequence copy failed", __LINE__);
bSuccess = false;
}
if(!std::equal(pids.begin(), pids.end(), pids2.begin()))
{
r->report("process_module_sequence copies contents' different", __LINE__);
bSuccess = false;
}
return bSuccess;
}
unittest_registrar unittest_winstl_system_process_module_sequence(test_winstl_system_process_module_sequence);
} // anonymous namespace
} // namespace unittest
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -