Added CFDP packet stack #528

Merged
muellerr merged 10 commits from KSat/fsfw:mueller/cfdp-pdus into development 2022-02-02 10:27:40 +01:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 7a84dff7d6 - Show all commits

View File

@ -37,7 +37,7 @@ TEST_CASE( "Finished PDU" , "[FinishedPdu]") {
// Add a filestore response
std::string firstName = "hello.txt";
cfdp::Lv firstNameLv(reinterpret_cast<uint8_t*>(firstName.data()), firstName.size());
cfdp::Lv firstNameLv(reinterpret_cast<const uint8_t*>(firstName.data()), firstName.size());
FilestoreResponseTlv response(cfdp::FilestoreActionCode::DELETE_FILE,
cfdp::FSR_APPEND_FILE_1_NOT_EXISTS, firstNameLv, nullptr);
FilestoreResponseTlv* responsePtr = &response;
@ -56,7 +56,7 @@ TEST_CASE( "Finished PDU" , "[FinishedPdu]") {
// Add two filestore responses and a fault location parameter
std::string secondName = "hello2.txt";
cfdp::Lv secondNameLv(reinterpret_cast<uint8_t*>(secondName.data()), secondName.size());
cfdp::Lv secondNameLv(reinterpret_cast<const uint8_t*>(secondName.data()), secondName.size());
FilestoreResponseTlv response2(cfdp::FilestoreActionCode::DENY_FILE ,
cfdp::FSR_SUCCESS, secondNameLv, nullptr);
REQUIRE(response2.getSerializedSize() == 15);
@ -106,7 +106,7 @@ TEST_CASE( "Finished PDU" , "[FinishedPdu]") {
sz = 0;
buffer = fnBuffer.data();
std::string firstName = "hello.txt";
cfdp::Lv firstNameLv(reinterpret_cast<uint8_t*>(firstName.data()), firstName.size());
cfdp::Lv firstNameLv(reinterpret_cast<const uint8_t*>(firstName.data()), firstName.size());
FilestoreResponseTlv response(cfdp::FilestoreActionCode::DELETE_FILE,
cfdp::FSR_NOT_PERFORMED, firstNameLv, nullptr);
FilestoreResponseTlv* responsePtr = &response;
@ -136,7 +136,7 @@ TEST_CASE( "Finished PDU" , "[FinishedPdu]") {
// Add two filestore responses and a fault location parameter
std::string secondName = "hello2.txt";
cfdp::Lv secondNameLv(reinterpret_cast<uint8_t*>(secondName.data()), secondName.size());
cfdp::Lv secondNameLv(reinterpret_cast<const uint8_t*>(secondName.data()), secondName.size());
FilestoreResponseTlv response2(cfdp::FilestoreActionCode::DENY_FILE ,
cfdp::FSR_SUCCESS, secondNameLv, nullptr);
REQUIRE(response2.getSerializedSize() == 15);