-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFakeb-debug.cpp
54 lines (41 loc) · 1.19 KB
/
Fakeb-debug.cpp
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
#include "unittest\Fakeb.h"
void printFakeFunction();
namespace FakebNamespace {
} // namespace FakebNamespace
namespace eGlobal <unnamed scope> (org.eclipse.cdt.internal.core.dom.parser.cpp.CPPNamespaceScope@350c7188) {
Fakeb::Fakeb()
: b( )
, fake_d( "Fakeb::d" )
, fake_c( "Fakeb::c" )
{}
Fakeb::~Fakeb()
{}
void Fakeb::registerMethodWatcher( TestUtility::FakeMethodWatcher& methodWatcher )
{
fake_d.registerMethodWatcher( methodWatcher );
fake_c.registerMethodWatcher( methodWatcher );
}
void Fakeb::verifyFakeMethodWasNotCalled( const std::string& testCondition )
{
TestUtility::verifyFakeMethodWasNotCalled( fake_d, testCondition );
TestUtility::verifyFakeMethodWasNotCalled( fake_c, testCondition );
}
void Fakeb::verifyFakeMethodUsage( const std::string& testCondition )
{
TestUtility::verifyFakeMethodUsage( fake_d, testCondition );
TestUtility::verifyFakeMethodUsage( fake_c, testCondition );
}
void Fakeb::resetFakeMethodUsage( void )
{
fake_d.reset();
fake_c.reset();
}
int Faked(int a, int b)
{
return fake_d( a, b );
}
void Fakec(int a)
{
return fake_c( a );
}
} // namespace eGlobal <unnamed scope> (org.eclipse.cdt.internal.core.dom.parser.cpp.CPPNamespaceScope@350c7188)