Commit cebe2718 authored by nfoy's avatar nfoy
Browse files

create test_tagstream

parent 0ac8d1df
#ifndef __OpenViBE_AcquisitionServer_TCPTagSession_H__
#define __OpenViBE_AcquisitionServer_TCPTagSession_H__
#ifndef __OpenViBE_AcquisitionServer_TCPTagStream_H__
#define __OpenViBE_AcquisitionServer_TCPTagStream_H__
#include <queue>
#include <boost/bind.hpp>
......@@ -126,4 +126,4 @@ private:
#endif // __OpenViBE_AcquisitionServer_TCPTagSession_H__
#endif // __OpenViBE_AcquisitionServer_TCPTagStream_H__
ADD_TEST(run_test_tagstream "$ENV{OV_BINARY_PATH}/test_tagstream")
#include "../ovasCTagStream.h"
using namespace OpenViBEAcquisitionServer;
using namespace OpenViBEAcquisitionServerPlugins;
int main()
bool ok=false;
CTagStream tagStream1;
try {
// The construction of the second TagStream must fail because of port already in use.
CTagStream tagStream2;
catch(std::exception &e) {
// The construction must succeed because another port is used.
CTagStream tagStream3(15362);
if (!ok)
return 1;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment