maybe this fixes the build error?

This commit is contained in:
Robin Müller 2021-12-06 16:23:09 +01:00
parent 6a6f6011ba
commit 7a84dff7d6
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

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