-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStdOutTestReporter.h
More file actions
43 lines (34 loc) · 868 Bytes
/
StdOutTestReporter.h
File metadata and controls
43 lines (34 loc) · 868 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
#ifndef __STDOUTTESTREPORTER_H__
#define __STDOUTTESTREPORTER_H__
#include "TestReporter.h"
#include <iostream>
using namespace std;
//*******************************************************************
// An interface used to capture output from the runs of a test case
class StdOutTestReporter : public TestReporter
{
public:
StdOutTestReporter() {};
~StdOutTestReporter() {};
virtual TestReporter& operator<<(string str)
{
cout << str;
return *this;
};
virtual TestReporter& operator<<(long l)
{
cout << l;
return *this;
};
virtual TestReporter& operator<<(int i)
{
cout << i;
return *this;
};
virtual TestReporter& operator<<(size_t s)
{
cout << (unsigned long)s;
return *this;
};
};
#endif