This file is indexed.

/usr/include/cppunit/ui/qt/QtTestRunner.h is in libcppunit-dev 1.13.2-2.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// //////////////////////////////////////////////////////////////////////////
// Header file TestRunner.h for class TestRunner
// (c)Copyright 2000, Baptiste Lepilleur.
// Created: 2001/09/19
// //////////////////////////////////////////////////////////////////////////
#ifndef CPPUNIT_QTUI_QTTESTRUNNER_H
#define CPPUNIT_QTUI_QTTESTRUNNER_H

#include <cppunit/portability/CppUnitVector.h>
#include "Config.h"

CPPUNIT_NS_BEGIN


  class Test;
  class TestSuite;


/*! 
 * \brief QT test runner.
 * \ingroup ExecutingTest
 *
 * Here is an example of usage:
 * \code
 * #include <cppunit/extensions/TestFactoryRegistry.h>
 * #include <cppunit/ui/qt/TestRunner.h>
 *
 * [...]
 *
 * void 
 * QDepWindow::runTests()
 * {
 *   CppUnit::QtUi::TestRunner runner;
 *   runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() );
 *   runner.run( true );
 * }
 * \endcode
 *
 */
class QTTESTRUNNER_API QtTestRunner
{
public:
  /*! Constructs a TestRunner object.
   */
  QtTestRunner();

  /*! Destructor.
   */
  virtual ~QtTestRunner();

  void run( bool autoRun =false );

  void addTest( Test *test );

private:
  /// Prevents the use of the copy constructor.
  QtTestRunner( const QtTestRunner &copy );

  /// Prevents the use of the copy operator.
  void operator =( const QtTestRunner &copy );

  Test *getRootTest();

private:
  typedef CppUnitVector<Test *> Tests;
  Tests *_tests;

  TestSuite *_suite;
};


#if CPPUNIT_HAVE_NAMESPACES
  namespace QtUi
  {
    /*! Qt TestRunner (DEPRECATED).
     * \deprecated Use CppUnit::QtTestRunner instead.
     */
    typedef CPPUNIT_NS::QtTestRunner TestRunner;
  }
#endif


CPPUNIT_NS_END

#endif  // CPPUNIT_QTUI_QTTESTRUNNER_H