process_module_sequence_unittest_.h
来自「新版本TR1的stl」· C头文件 代码 · 共 45 行
H
45 行
#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 + =
减小字号Ctrl + -
显示快捷键?