clockerlistener.h

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

H
67
字号
// //////////////////////////////////////////////////////////////////////////// Header file ClockerListener.h for class ClockerListener// (c)Copyright 2000, Baptiste Lepilleur.// Created: 2002/04/19// //////////////////////////////////////////////////////////////////////////#ifndef CLOCKERLISTENER_H#define CLOCKERLISTENER_H#include <cppunit/TestListener.h>class ClockerModel;/// TestListener that prints a flatten or hierarchical view of the test tree.class ClockerListener : public CPPUNIT_NS::TestListener{public:  ClockerListener( ClockerModel *model,                   bool text );  virtual ~ClockerListener();  void startTestRun( CPPUNIT_NS::Test *test,                      CPPUNIT_NS::TestResult *eventManager );  void endTestRun( CPPUNIT_NS::Test *test,                    CPPUNIT_NS::TestResult *eventManager );  void startTest( CPPUNIT_NS::Test *test );  void endTest( CPPUNIT_NS::Test *test );  void startSuite( CPPUNIT_NS::Test *suite );  void endSuite( CPPUNIT_NS::Test *suite );private:  void printStatistics() const;  void printTest( int testIndex,                  const std::string &indentString ) const;  void printTestIndent( const std::string &indent,                        const int indentLength ) const;  void printTime( double time ) const;  /// Prevents the use of the copy constructor.  ClockerListener( const ClockerListener &other );  /// Prevents the use of the copy operator.  void operator =( const ClockerListener &other );private:  ClockerModel *m_model;  bool m_text;};// Inlines methods for ClockerListener:// -----------------------------------#endif  // CLOCKERLISTENER_H

⌨️ 快捷键说明

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