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
0ba1ca56
Commit
0ba1ca56
authored
May 03, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
66bbe75c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
libcaf_core/caf/is_error_code_enum.hpp
libcaf_core/caf/is_error_code_enum.hpp
+1
-1
libcaf_core/test/binary_deserializer.cpp
libcaf_core/test/binary_deserializer.cpp
+2
-2
libcaf_io/test/io/basp_broker.cpp
libcaf_io/test/io/basp_broker.cpp
+5
-5
libcaf_io/test/io/network/ip_endpoint.cpp
libcaf_io/test/io/network/ip_endpoint.cpp
+2
-2
No files found.
libcaf_core/caf/is_error_code_enum.hpp
View file @
0ba1ca56
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* | |___ / ___ \| _| Framework *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* \____/_/ \_|_| *
* *
* *
* Copyright 2011-20
19
Dominik Charousset *
* Copyright 2011-20
20
Dominik Charousset *
* *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* 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 *
* (at your option) under the terms and conditions of the Boost Software *
...
...
libcaf_core/test/binary_deserializer.cpp
View file @
0ba1ca56
...
@@ -49,7 +49,7 @@ struct fixture {
...
@@ -49,7 +49,7 @@ struct fixture {
auto
result
=
T
{};
auto
result
=
T
{};
binary_deserializer
source
{
nullptr
,
buf
};
binary_deserializer
source
{
nullptr
,
buf
};
if
(
auto
err
=
source
(
result
))
if
(
auto
err
=
source
(
result
))
CAF_FAIL
(
"binary_deserializer failed to load: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"binary_deserializer failed to load: "
<<
err
);
return
result
;
return
result
;
}
}
...
@@ -57,7 +57,7 @@ struct fixture {
...
@@ -57,7 +57,7 @@ struct fixture {
void
load
(
const
std
::
vector
<
byte
>&
buf
,
Ts
&
...
xs
)
{
void
load
(
const
std
::
vector
<
byte
>&
buf
,
Ts
&
...
xs
)
{
binary_deserializer
source
{
nullptr
,
buf
};
binary_deserializer
source
{
nullptr
,
buf
};
if
(
auto
err
=
source
(
xs
...))
if
(
auto
err
=
source
(
xs
...))
CAF_FAIL
(
"binary_deserializer failed to load: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"binary_deserializer failed to load: "
<<
err
);
}
}
};
};
...
...
libcaf_io/test/io/basp_broker.cpp
View file @
0ba1ca56
...
@@ -161,7 +161,7 @@ public:
...
@@ -161,7 +161,7 @@ public:
byte_buffer
buf
;
byte_buffer
buf
;
binary_serializer
bs
{
mpx_
,
buf
};
binary_serializer
bs
{
mpx_
,
buf
};
if
(
auto
err
=
bs
(
const_cast
<
message
&>
(
msg
)))
if
(
auto
err
=
bs
(
const_cast
<
message
&>
(
msg
)))
CAF_FAIL
(
"returned to serialize message: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"returned to serialize message: "
<<
err
);
return
static_cast
<
uint32_t
>
(
buf
.
size
());
return
static_cast
<
uint32_t
>
(
buf
.
size
());
}
}
...
@@ -219,7 +219,7 @@ public:
...
@@ -219,7 +219,7 @@ public:
void
to_payload
(
byte_buffer
&
buf
,
const
Ts
&
...
xs
)
{
void
to_payload
(
byte_buffer
&
buf
,
const
Ts
&
...
xs
)
{
binary_serializer
sink
{
mpx_
,
buf
};
binary_serializer
sink
{
mpx_
,
buf
};
if
(
auto
err
=
sink
(
xs
...))
if
(
auto
err
=
sink
(
xs
...))
CAF_FAIL
(
"failed to serialize payload: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"failed to serialize payload: "
<<
err
);
}
}
void
to_buf
(
byte_buffer
&
buf
,
basp
::
header
&
hdr
,
payload_writer
*
writer
)
{
void
to_buf
(
byte_buffer
&
buf
,
basp
::
header
&
hdr
,
payload_writer
*
writer
)
{
...
@@ -347,7 +347,7 @@ public:
...
@@ -347,7 +347,7 @@ public:
{
// lifetime scope of source
{
// lifetime scope of source
binary_deserializer
source
{
this_
->
mpx
(),
ob
};
binary_deserializer
source
{
this_
->
mpx
(),
ob
};
if
(
auto
err
=
source
(
hdr
))
if
(
auto
err
=
source
(
hdr
))
CAF_FAIL
(
"unable to deserialize header: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"unable to deserialize header: "
<<
err
);
}
}
byte_buffer
payload
;
byte_buffer
payload
;
if
(
hdr
.
payload_len
>
0
)
{
if
(
hdr
.
payload_len
>
0
)
{
...
@@ -484,7 +484,7 @@ CAF_TEST(non_empty_server_handshake) {
...
@@ -484,7 +484,7 @@ CAF_TEST(non_empty_server_handshake) {
std
::
set
<
std
::
string
>
ifs
{
"caf::replies_to<@u16>::with<@u16>"
};
std
::
set
<
std
::
string
>
ifs
{
"caf::replies_to<@u16>::with<@u16>"
};
binary_serializer
sink
{
nullptr
,
expected_payload
};
binary_serializer
sink
{
nullptr
,
expected_payload
};
if
(
auto
err
=
sink
(
instance
().
this_node
(),
app_ids
,
self
()
->
id
(),
ifs
))
if
(
auto
err
=
sink
(
instance
().
this_node
(),
app_ids
,
self
()
->
id
(),
ifs
))
CAF_FAIL
(
"serializing handshake failed: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"serializing handshake failed: "
<<
err
);
CAF_CHECK_EQUAL
(
hexstr
(
payload
),
hexstr
(
expected_payload
));
CAF_CHECK_EQUAL
(
hexstr
(
payload
),
hexstr
(
expected_payload
));
}
}
...
@@ -607,7 +607,7 @@ CAF_TEST(remote_actor_and_send) {
...
@@ -607,7 +607,7 @@ CAF_TEST(remote_actor_and_send) {
CAF_REQUIRE
(
proxy
==
res
);
CAF_REQUIRE
(
proxy
==
res
);
result
=
actor_cast
<
actor
>
(
res
);
result
=
actor_cast
<
actor
>
(
res
);
},
},
[
&
](
error
&
err
)
{
CAF_FAIL
(
"error: "
<<
to_string
(
err
)
);
});
[
&
](
error
&
err
)
{
CAF_FAIL
(
"error: "
<<
err
);
});
CAF_MESSAGE
(
"send message to proxy"
);
CAF_MESSAGE
(
"send message to proxy"
);
anon_send
(
actor_cast
<
actor
>
(
result
),
42
);
anon_send
(
actor_cast
<
actor
>
(
result
),
42
);
mpx
()
->
flush_runnables
();
mpx
()
->
flush_runnables
();
...
...
libcaf_io/test/io/network/ip_endpoint.cpp
View file @
0ba1ca56
...
@@ -50,7 +50,7 @@ struct fixture : test_coordinator_fixture<> {
...
@@ -50,7 +50,7 @@ struct fixture : test_coordinator_fixture<> {
byte_buffer
buf
;
byte_buffer
buf
;
binary_serializer
sink
{
sys
,
buf
};
binary_serializer
sink
{
sys
,
buf
};
if
(
auto
err
=
sink
(
x
,
xs
...))
if
(
auto
err
=
sink
(
x
,
xs
...))
CAF_FAIL
(
"serialization failed: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"serialization failed: "
<<
err
);
return
buf
;
return
buf
;
}
}
...
@@ -58,7 +58,7 @@ struct fixture : test_coordinator_fixture<> {
...
@@ -58,7 +58,7 @@ struct fixture : test_coordinator_fixture<> {
void
deserialize
(
const
Buffer
&
buf
,
T
&
x
,
Ts
&
...
xs
)
{
void
deserialize
(
const
Buffer
&
buf
,
T
&
x
,
Ts
&
...
xs
)
{
binary_deserializer
source
{
sys
,
buf
};
binary_deserializer
source
{
sys
,
buf
};
if
(
auto
err
=
source
(
x
,
xs
...))
if
(
auto
err
=
source
(
x
,
xs
...))
CAF_FAIL
(
"serialization failed: "
<<
to_string
(
err
)
);
CAF_FAIL
(
"serialization failed: "
<<
err
);
}
}
};
};
...
...
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