Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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 Framework
Commits
e8ddcf31
Commit
e8ddcf31
authored
Jul 27, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler error on older Clang releases
parent
696d995b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
libcaf_io/test/basp.cpp
libcaf_io/test/basp.cpp
+8
-8
No files found.
libcaf_io/test/basp.cpp
View file @
e8ddcf31
...
...
@@ -211,9 +211,9 @@ public:
}
void
connect_node
(
size_t
i
,
optional
<
accept_handle
>
ax
,
actor_id
published_actor_id
,
set
<
string
>
published_actor_ifs
=
{})
{
optional
<
accept_handle
>
ax
=
none
,
actor_id
published_actor_id
=
invalid_actor_id
,
set
<
string
>
published_actor_ifs
=
std
::
set
<
std
::
string
>
{})
{
auto
src
=
ax
?
*
ax
:
ahdl_
;
CAF_MESSAGE
(
"connect remote node "
<<
i
<<
", connection ID = "
<<
(
i
+
1
)
<<
", acceptor ID = "
<<
src
.
id
());
...
...
@@ -382,7 +382,7 @@ CAF_TEST(non_empty_server_handshake) {
}
CAF_TEST
(
client_handshake_and_dispatch
)
{
connect_node
(
0
,
none
,
invalid_actor_id
,
{}
);
connect_node
(
0
);
// send a message via `dispatch` from node 0
mock
(
remote_hdl
(
0
),
{
basp
::
message_type
::
dispatch_message
,
0
,
0
,
...
...
@@ -418,8 +418,8 @@ CAF_TEST(client_handshake_and_dispatch) {
CAF_TEST
(
message_forwarding
)
{
// connect two remote nodes
connect_node
(
0
,
none
,
invalid_actor_id
,
{}
);
connect_node
(
1
,
none
,
invalid_actor_id
,
{}
);
connect_node
(
0
);
connect_node
(
1
);
auto
msg
=
make_message
(
1
,
2
,
3
);
// send a message from node 0 to node 1, forwarded by this node
mock
(
remote_hdl
(
0
),
...
...
@@ -439,7 +439,7 @@ CAF_TEST(publish_and_connect) {
mpx
()
->
provide_acceptor
(
4242
,
ax
);
publish
(
self
(),
4242
);
mpx
()
->
exec_runnable
();
// process publish message in basp_broker
connect_node
(
0
,
ax
,
self
()
->
id
()
,
{}
);
connect_node
(
0
,
ax
,
self
()
->
id
());
}
CAF_TEST
(
remote_actor_and_send
)
{
...
...
@@ -520,7 +520,7 @@ CAF_TEST(actor_serialize_and_deserialize) {
}
};
};
connect_node
(
0
,
none
,
invalid_actor_id
,
{}
);
connect_node
(
0
);
auto
prx
=
get_namespace
().
get_or_put
(
remote_node
(
0
),
pseudo_remote
(
0
)
->
id
());
mock
()
.
expect
(
remote_hdl
(
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