This software aims to create an applet and panel tools to manage a wireless interface card, such as

源代码在线查看: testsuite.cpp

软件大小: 2064 K
上传用户: sinba
关键词: interface software wireless create
下载地址: 免注册下载 普通下载 VIP

相关代码

				//
				// TestSuite.cpp
				//
				// $Id: //poco/Main/CppUnit/src/TestSuite.cpp#5 $
				//
				
				
				#include "CppUnit/TestSuite.h"
				#include "CppUnit/TestResult.h"
				
				
				CppUnit_BEGIN
				
				
				// Deletes all tests in the suite.
				void TestSuite::deleteContents()
				{
					for (std::vector::iterator it = _tests.begin(); it != _tests.end(); ++it)
						delete *it;
				}
				
				
				// Runs the tests and collects their result in a TestResult.
				void TestSuite::run(TestResult *result)
				{
					for (std::vector::iterator it = _tests.begin(); it != _tests.end(); ++it) 
					{
						if (result->shouldStop ())
							break;
				
						Test *test = *it;
						test->run(result);
					}
				}
				
				
				// Counts the number of test cases that will be run by this test.
				int TestSuite::countTestCases()
				{
					int count = 0;
				
					for (std::vector::iterator it = _tests.begin (); it != _tests.end (); ++it)
						count += (*it)->countTestCases();
				
					return count;
				}
				
				
				CppUnit_END
							

相关资源