commandlineparsertest.h

来自「这是国外的resip协议栈」· C头文件 代码 · 共 62 行

H
62
字号
#ifndef COMMANDLINEPARSERTEST_H#define COMMANDLINEPARSERTEST_H#include <cppunit/extensions/HelperMacros.h>class CommandLineParser;class CommandLineParserException;class CommandLineParserTest : public CPPUNIT_NS::TestCase{  CPPUNIT_TEST_SUITE( CommandLineParserTest );  CPPUNIT_TEST( testEmptyCommandLine );  CPPUNIT_TEST( testFlagCompiler );  CPPUNIT_TEST( testLongFlagBriefProgress );  CPPUNIT_TEST( testFileName );  CPPUNIT_TEST( testTestPath );  CPPUNIT_TEST( testParameterWithSpace );  CPPUNIT_TEST_EXCEPTION( testMissingStyleSheetParameterThrow, CommandLineParserException);  CPPUNIT_TEST_EXCEPTION( testMissingEncodingParameterThrow, CommandLineParserException);  CPPUNIT_TEST( testXmlFileNameIsOptional );  CPPUNIT_TEST( testPlugInsWithParameters );  CPPUNIT_TEST_SUITE_END();public:  CommandLineParserTest();  virtual ~CommandLineParserTest();  void setUp();  void tearDown();  void testEmptyCommandLine();  void testFlagCompiler();  void testLongFlagBriefProgress();  void testFileName();  void testTestPath();  void testParameterWithSpace();  void testMissingStyleSheetParameterThrow();  void testMissingEncodingParameterThrow();  void testXmlFileNameIsOptional();  void testPlugInsWithParameters();private:  CommandLineParserTest( const CommandLineParserTest &other );  void operator =( const CommandLineParserTest &other );  void parse( const char **lines );private:  CommandLineParser *_parser;};// Inlines methods for CommandLineParserTest:// ------------------------------------------#endif  // COMMANDLINEPARSERTEST_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?