Menu

[r260]: / trunk / cppunit / src / cppunit / TestSucessListener.cpp  Maximize  Restore  History

Download this file

47 lines (30 with data), 621 Bytes

 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
#include <cppunit/TestSucessListener.h>
namespace CppUnit
{
TestSucessListener::TestSucessListener( SynchronizationObject *syncObject )
: SynchronizedObject( syncObject )
, m_sucess( true )
{
}
TestSucessListener::~TestSucessListener()
{
}
void
TestSucessListener::reset()
{
ExclusiveZone zone( m_syncObject );
m_sucess = true;
}
void
TestSucessListener::addFailure( const TestFailure &failure )
{
ExclusiveZone zone( m_syncObject );
m_sucess = false;
}
bool
TestSucessListener::wasSuccessful() const
{
ExclusiveZone zone( m_syncObject );
return m_sucess;
}
} // namespace CppUnit
MongoDB Logo MongoDB