Skip to content
Snippets Groups Projects
Verified Commit fe3c3e39 authored by Benny Baumann's avatar Benny Baumann
Browse files

fix: Properly write data into the data archive

parent 01e9e848
No related branches found
No related tags found
No related merge requests found
...@@ -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);
} }
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
namespace rmrf::test { namespace rmrf::test {
/** /**
* Use this cass to mock a connection client. * Use this class 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment