Revision e19ad051 test/server.cpp
test/server.cpp | ||
---|---|---|
1 | 1 |
// Bring in my package's API, which is what I'm testing |
2 |
#include "server.h" |
|
2 |
#include "humotion/server/server.h"
|
|
3 | 3 |
#include <gtest/gtest.h> |
4 | 4 |
#include <string> |
5 | 5 |
#include <cstdio> |
6 | 6 |
using namespace std; |
7 |
using namespace humotion; |
|
8 |
using namespace humotion::server; |
|
7 | 9 |
|
8 | 10 |
namespace { |
9 | 11 |
|
... | ... | |
12 | 14 |
protected: |
13 | 15 |
server_Test() { |
14 | 16 |
//set-up work for EACH test here |
15 |
s = new Server();
|
|
17 |
s = new Server("test", "ROS", NULL);
|
|
16 | 18 |
|
17 | 19 |
} |
18 | 20 |
|
... | ... | |
50 | 52 |
EXPECT_EQ(s->ok(), true); |
51 | 53 |
|
52 | 54 |
for(int i=0; i<100000; i++){ |
53 |
s->tick();
|
|
55 |
//s->tick();
|
|
54 | 56 |
} |
55 | 57 |
} |
56 | 58 |
|
Also available in: Unified diff