Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Openvibe Group
extras
Commits
cebe2718
Commit
cebe2718
authored
Apr 26, 2016
by
nfoy
Browse files
create test_tagstream
parent
0ac8d1df
Changes
3
Hide whitespace changes
Inline
Side-by-side
contrib/plugins/server-extensions/tcp-tagging/ovasCTagStream.h
View file @
cebe2718
#ifndef __OpenViBE_AcquisitionServer_TCPTagS
ession
_H__
#define __OpenViBE_AcquisitionServer_TCPTagS
ession
_H__
#ifndef __OpenViBE_AcquisitionServer_TCPTagS
tream
_H__
#define __OpenViBE_AcquisitionServer_TCPTagS
tream
_H__
#include <queue>
#include <boost/bind.hpp>
...
...
@@ -126,4 +126,4 @@ private:
}
#endif // __OpenViBE_AcquisitionServer_TCPTagS
ession
_H__
#endif // __OpenViBE_AcquisitionServer_TCPTagS
tream
_H__
contrib/plugins/server-extensions/tcp-tagging/tests/DartTestfile.txt
0 → 100644
View file @
cebe2718
ADD_TEST(run_test_tagstream "$ENV{OV_BINARY_PATH}/test_tagstream")
contrib/plugins/server-extensions/tcp-tagging/tests/test_tagstream.cpp
0 → 100644
View file @
cebe2718
#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
)
{
ok
=
true
;
}
// The construction must succeed because another port is used.
CTagStream
tagStream3
(
15362
);
if
(
!
ok
)
return
1
;
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment