Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
actor-incubator
Commits
1127f22a
Commit
1127f22a
authored
Mar 16, 2020
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port libcaf_bb
parent
3d945be1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
28 deletions
+34
-28
cmake/incubator-test.cpp
cmake/incubator-test.cpp
+4
-2
libcaf_bb/caf/bb/test/bb_test_type_ids.hpp
libcaf_bb/caf/bb/test/bb_test_type_ids.hpp
+26
-0
libcaf_bb/test/container_source.cpp
libcaf_bb/test/container_source.cpp
+2
-1
libcaf_bb/test/stream_reader.cpp
libcaf_bb/test/stream_reader.cpp
+2
-2
libcaf_net/caf/net/test/incubator_test.hpp
libcaf_net/caf/net/test/incubator_test.hpp
+0
-23
No files found.
cmake/incubator-test.cpp
View file @
1127f22a
#define CAF_TEST_NO_MAIN
#define CAF_TEST_NO_MAIN
#include "caf/net/test/incubator_test.hpp"
#include "caf/fwd.hpp"
#include "caf/test/dsl.hpp"
#include "caf/test/unit_test_impl.hpp"
#include "caf/test/unit_test_impl.hpp"
#include "caf/type_id.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
caf
::
init_global_meta_objects
<>
();
caf
::
init_global_meta_objects
<>
();
return
caf
::
test
::
main
(
argc
,
argv
);
return
caf
::
test
::
main
(
argc
,
argv
);
}
}
\ No newline at end of file
libcaf_bb/caf/bb/test/bb_test_type_ids.hpp
0 → 100644
View file @
1127f22a
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright 2011-2020 Dominik Charousset *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#include "caf/test/dsl.hpp"
CAF_BEGIN_TYPE_ID_BLOCK
(
bb_test
,
caf
::
first_custom_type_id
)
CAF_ADD_TYPE_ID
(
bb_test
,
(
caf
::
stream
<
int
>
)
)
CAF_ADD_TYPE_ID
(
bb_test
,
(
std
::
vector
<
int
>
)
)
CAF_END_TYPE_ID_BLOCK
(
bb_test
)
libcaf_bb/test/container_source.cpp
View file @
1127f22a
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include "caf/bb/container_source.hpp"
#include "caf/bb/container_source.hpp"
#include "caf/bb/test/bb_test_type_ids.hpp"
#include "caf/test/dsl.hpp"
#include "caf/test/dsl.hpp"
#include <vector>
#include <vector>
...
@@ -74,7 +75,7 @@ TESTEE(container_monitor) {
...
@@ -74,7 +75,7 @@ TESTEE(container_monitor) {
struct
config
:
actor_system_config
{
struct
config
:
actor_system_config
{
config
()
{
config
()
{
add_message_type
<
container_type
::
value_type
>
(
"value_type"
);
init_global_meta_objects
<
bb_test_type_ids
>
(
);
}
}
};
};
...
...
libcaf_bb/test/stream_reader.cpp
View file @
1127f22a
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
#include "caf/bb/stream_reader.hpp"
#include "caf/bb/stream_reader.hpp"
#include "caf/policy/tokenized_integer_reader.hpp"
#include "caf/policy/tokenized_integer_reader.hpp"
#include "caf/bb/test/bb_test_type_ids.hpp"
#include "caf/test/dsl.hpp"
#include "caf/test/dsl.hpp"
#include <memory>
#include <memory>
#include <sstream>
#include <string>
#include <string>
#include <vector>
#include <vector>
...
@@ -86,7 +86,7 @@ TESTEE(stream_monitor) {
...
@@ -86,7 +86,7 @@ TESTEE(stream_monitor) {
struct
config
:
actor_system_config
{
struct
config
:
actor_system_config
{
config
()
{
config
()
{
// nop
init_global_meta_objects
<
bb_test_type_ids
>
();
}
}
};
};
...
...
libcaf_net/caf/net/test/incubator_test.hpp
deleted
100644 → 0
View file @
3d945be1
#include "caf/fwd.hpp"
#include "caf/test/dsl.hpp"
#include "caf/type_id.hpp"
#include "caf/typed_actor.hpp"
#include <cstdint>
#include <numeric>
#include <string>
#include <utility>
// -- forward declarations for all unit test suites ----------------------------
// -- type IDs for for all unit test suites ------------------------------------
#define ADD_TYPE_ID(type) CAF_ADD_TYPE_ID(incubator_test, type)
#define ADD_ATOM(atom_name) CAF_ADD_ATOM(incubator_test, atom_name)
CAF_BEGIN_TYPE_ID_BLOCK
(
incubator_test
,
caf
::
first_custom_type_id
)
CAF_END_TYPE_ID_BLOCK
(
incubator_test
)
#undef ADD_TYPE_ID
#undef ADD_ATOM
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