25 #ifndef WPROGRESS_TEST_H
26 #define WPROGRESS_TEST_H
30 #include <cxxtest/TestSuite.h>
32 #include "../WProgress.h"
45 TS_ASSERT_THROWS_NOTHING(
WProgress p(
"Test", 1 ) );
82 TS_ASSERT_THROWS_NOTHING( p.
update() );
89 TS_ASSERT_THROWS_NOTHING( p.
update() );
93 TS_ASSERT_THROWS_NOTHING( p.
update() );
99 TS_ASSERT_THROWS_NOTHING( p.
update() );
116 TS_ASSERT_THROWS_NOTHING( p.
update() );
122 TS_ASSERT_THROWS_NOTHING( p.
update() );
Test Class for the base progress class.
void testInternalState()
Test whether the state is updated properly.
void testInstantiation()
Test whether WProgress is instantiatable.
void testFinish()
Test whether finish() sets pending to false.
void testDeterminedFlag()
Test whether isDetermined returns the right value, depending on construction parameters of WProgress.
void testInternalStateOfIndetermined()
Test whether the state is updated properly if the instance is a indetermined one.
Class managing progress inside of modules.
virtual void finish()
Stops the progress.
size_t m_count
The current counter.
virtual bool isPending()
Returns true when the operation is pending.
virtual bool isDetermined()
Returns true whenever the progress has a known end.
virtual float getProgress()
Returns the overall progress of this progress instance, including the child progress'.
virtual void update()
Function updating the internal state.