forked from hardion/MilK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMilKMock.cpp
More file actions
40 lines (31 loc) · 716 Bytes
/
MilKMock.cpp
File metadata and controls
40 lines (31 loc) · 716 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
/*
* File: MilKMock.cpp
* Author: hardion
*
* Created on May 24, 2012, 1:35 PM
*/
#include "MilKMock.h"
namespace milk {
MilKMock::MilKMock(std::string ip, unsigned short port) {
current = 0;
current_set = 0;
field = 0;
field_set = 0;
state = OFF;
}
MilKMock::MilKMock(std::string ip, unsigned short port, MockInit mode){
MilKMock(ip, port);
if(mode == TEST_STATELESS){
state = ON;
}
}
MilKMock::MilKMock(const MilKMock& orig) {
this->current = orig.current;
this->current_set = orig.current_set;
this->field = orig.field;
this->field_set = orig.field_set;
this->state = orig.state;
}
MilKMock::~MilKMock() {
}
}