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
d2bf0a64
Commit
d2bf0a64
authored
Mar 31, 2020
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on MacOS
parent
1127f22a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
10 deletions
+25
-10
cmake/incubator-test.cpp
cmake/incubator-test.cpp
+3
-5
cmake/incubator-test.hpp
cmake/incubator-test.hpp
+16
-0
libcaf_bb/test/container_source.cpp
libcaf_bb/test/container_source.cpp
+1
-1
libcaf_bb/test/stream_reader.cpp
libcaf_bb/test/stream_reader.cpp
+1
-1
libcaf_net/test/endpoint_manager.cpp
libcaf_net/test/endpoint_manager.cpp
+2
-1
libcaf_net/test/stream_transport.cpp
libcaf_net/test/stream_transport.cpp
+1
-1
libcaf_net/test/string_application.cpp
libcaf_net/test/string_application.cpp
+1
-1
No files found.
cmake/incubator-test.cpp
View file @
d2bf0a64
#define CAF_TEST_NO_MAIN
#include "caf/fwd.hpp"
#include "caf/test/dsl.hpp"
#include "caf/test/unit_test_impl.hpp"
#include "caf/type_id.hpp"
#include "incubator-test.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
caf
::
init_global_meta_objects
<>
();
caf
::
core
::
init_global_meta_objects
();
caf
::
init_global_meta_objects
<
caf
::
id_block
::
incubator_test
>
();
return
caf
::
test
::
main
(
argc
,
argv
);
}
cmake/incubator-test.hpp
0 → 100644
View file @
d2bf0a64
#pragma once
#include <vector>
#include "caf/fwd.hpp"
#include "caf/stream.hpp"
#include "caf/test/dsl.hpp"
#include "caf/test/unit_test_impl.hpp"
#include "caf/type_id.hpp"
CAF_BEGIN_TYPE_ID_BLOCK
(
incubator_test
,
caf
::
first_custom_type_id
)
CAF_ADD_TYPE_ID
(
incubator_test
,
(
caf
::
stream
<
int
>
)
)
CAF_ADD_TYPE_ID
(
incubator_test
,
(
std
::
vector
<
int
>
)
)
CAF_END_TYPE_ID_BLOCK
(
incubator_test
)
libcaf_bb/test/container_source.cpp
View file @
d2bf0a64
...
...
@@ -75,7 +75,7 @@ TESTEE(container_monitor) {
struct
config
:
actor_system_config
{
config
()
{
init_global_meta_objects
<
bb_test_type_ids
>
();
// nop
}
};
...
...
libcaf_bb/test/stream_reader.cpp
View file @
d2bf0a64
...
...
@@ -86,7 +86,7 @@ TESTEE(stream_monitor) {
struct
config
:
actor_system_config
{
config
()
{
init_global_meta_objects
<
bb_test_type_ids
>
();
// nop
}
};
...
...
libcaf_net/test/endpoint_manager.cpp
View file @
d2bf0a64
...
...
@@ -31,6 +31,7 @@
#include "caf/net/make_endpoint_manager.hpp"
#include "caf/net/multiplexer.hpp"
#include "caf/net/stream_socket.hpp"
#include "caf/node_id.hpp"
#include "caf/span.hpp"
using
namespace
caf
;
...
...
@@ -124,7 +125,7 @@ public:
template
<
class
Manager
>
void
resolve
(
Manager
&
mgr
,
const
uri
&
locator
,
const
actor
&
listener
)
{
actor_id
aid
=
42
;
auto
hid
=
"0011223344556677889900112233445566778899"
;
auto
hid
=
string_view
(
"0011223344556677889900112233445566778899"
)
;
auto
nid
=
unbox
(
make_node_id
(
42
,
hid
));
actor_config
cfg
;
auto
p
=
make_actor
<
actor_proxy_impl
,
strong_actor_ptr
>
(
aid
,
nid
,
...
...
libcaf_net/test/stream_transport.cpp
View file @
d2bf0a64
...
...
@@ -106,7 +106,7 @@ public:
template
<
class
Parent
>
void
resolve
(
Parent
&
parent
,
string_view
path
,
const
actor
&
listener
)
{
actor_id
aid
=
42
;
auto
hid
=
"0011223344556677889900112233445566778899"
;
auto
hid
=
string_view
(
"0011223344556677889900112233445566778899"
)
;
auto
nid
=
unbox
(
make_node_id
(
42
,
hid
));
actor_config
cfg
;
endpoint_manager_ptr
ptr
{
&
parent
.
manager
()};
...
...
libcaf_net/test/string_application.cpp
View file @
d2bf0a64
...
...
@@ -168,7 +168,7 @@ public:
template
<
class
Parent
>
void
resolve
(
Parent
&
parent
,
string_view
path
,
actor
listener
)
{
actor_id
aid
=
42
;
auto
hid
=
"0011223344556677889900112233445566778899"
;
auto
hid
=
string_view
(
"0011223344556677889900112233445566778899"
)
;
auto
nid
=
unbox
(
make_node_id
(
aid
,
hid
));
actor_config
cfg
;
auto
sys
=
&
parent
.
system
();
...
...
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