Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ReadMailReallyFast
code
Commits
704e41e5
Commit
704e41e5
authored
4 years ago
by
Leon Dietrich
Browse files
Options
Downloads
Plain Diff
mrg: branch 'master' of git.ccs-baumann.de:rmrf/code
parents
b927b7a0
fe3c3e39
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/loopback_connection_client.cpp
+1
-1
1 addition, 1 deletion
src/test/loopback_connection_client.cpp
src/test/loopback_connection_client.hpp
+2
-2
2 additions, 2 deletions
src/test/loopback_connection_client.hpp
with
3 additions
and
3 deletions
src/test/loopback_connection_client.cpp
+
1
−
1
View file @
704e41e5
...
@@ -21,7 +21,7 @@ namespace rmrf::test {
...
@@ -21,7 +21,7 @@ namespace rmrf::test {
void
loopback_connection_client
::
write_data
(
const
std
::
string
&
data
)
{
void
loopback_connection_client
::
write_data
(
const
std
::
string
&
data
)
{
// TODO fixme
// TODO fixme
//
this->send_data_archive.push_back(data
_ptr
);
this
->
send_data_archive
.
push_back
(
data
);
if
(
this
->
mut_send_data_cb
!=
nullptr
)
{
if
(
this
->
mut_send_data_cb
!=
nullptr
)
{
this
->
mut_send_data_cb
(
data
);
this
->
mut_send_data_cb
(
data
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/test/loopback_connection_client.hpp
+
2
−
2
View file @
704e41e5
...
@@ -14,12 +14,12 @@
...
@@ -14,12 +14,12 @@
namespace
rmrf
::
test
{
namespace
rmrf
::
test
{
/**
/**
* Use this cass to mock a connection client.
* Use this c
l
ass to mock a connection client.
*/
*/
class
loopback_connection_client
:
public
rmrf
::
net
::
connection_client
{
class
loopback_connection_client
:
public
rmrf
::
net
::
connection_client
{
private:
private:
const
rmrf
::
net
::
connection_client
::
incomming_data_cb
mut_send_data_cb
;
const
rmrf
::
net
::
connection_client
::
incomming_data_cb
mut_send_data_cb
;
const
std
::
vector
<
std
::
string
>
send_data_archive
;
std
::
vector
<
std
::
string
>
send_data_archive
;
public:
public:
/**
/**
* This constructor uses the given callback to notify the test suite that the module under test
* This constructor uses the given callback to notify the test suite that the module under test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment