Rename stream to header and add guards

This commit is contained in:
2020-04-08 16:26:59 +02:00
parent 2329f7ad2f
commit f7d36f3fff
2 changed files with 7 additions and 2 deletions
@@ -1,3 +1,6 @@
#ifndef MOCK_STREAM_H
#define MOCK_STREAM_H
#include <zmq.hpp>
void generate_stream(size_t n_messages)
@@ -17,4 +20,6 @@ void generate_stream(size_t n_messages)
socket.send(header_msg, zmq::send_flags::sndmore);
socket.send(buffer_msg);
}
}
}
#endif
+1 -1
View File
@@ -5,7 +5,7 @@
#include <string>
#include "RingBuffer.hpp"
#include "mock/stream.cpp"
#include "mock/stream.hpp"
using namespace std;