dsp: base: Correct test case name for decode_multipart_receive_req()
The test case name for the group of unit tests for
`decode_multipart_receive_req()` API was incorrectly renamed to
`DecodeMultipartReceiveResponse` in [1]. This commit updates the test
case name to `DecodeMultipartReceiveRequest` to match the API name, and
not duplicate with that of `decode_pldm_base_multipart_receive_resp()`
[1]: https://gerrit.openbmc.org/c/openbmc/libpldm/+/82805
Change-Id: I037fed711b35dcdc7295e40dc365c4fb71ab0b0f
Signed-off-by: Chau Ly <chaul@amperecomputing.com>
diff --git a/tests/dsp/base.cpp b/tests/dsp/base.cpp
index 890c74a..a9f9c8a 100644
--- a/tests/dsp/base.cpp
+++ b/tests/dsp/base.cpp
@@ -540,7 +540,7 @@
EXPECT_EQ(tid, 1);
}
-TEST(DecodeMultipartReceiveResponse, testDecodeRequestPass)
+TEST(DecodeMultipartReceiveRequest, testDecodeRequestPass)
{
constexpr uint8_t kPldmType = PLDM_BASE;
constexpr uint8_t kFlag = PLDM_XFER_FIRST_PART;
@@ -585,14 +585,14 @@
EXPECT_EQ(section_length, kSectionLength);
}
-TEST(DecodeMultipartReceiveResponse, testDecodeRequestFailNullData)
+TEST(DecodeMultipartReceiveRequest, testDecodeRequestFailNullData)
{
EXPECT_EQ(decode_multipart_receive_req(NULL, 0, NULL, NULL, NULL, NULL,
NULL, NULL),
PLDM_ERROR_INVALID_DATA);
}
-TEST(DecodeMultipartReceiveResponse, testDecodeRequestFailBadLength)
+TEST(DecodeMultipartReceiveRequest, testDecodeRequestFailBadLength)
{
PLDM_MSG_DEFINE_P(msg, PLDM_MULTIPART_RECEIVE_REQ_BYTES + 1);
uint8_t pldm_type;
@@ -610,7 +610,7 @@
PLDM_ERROR_INVALID_DATA);
}
-TEST(DecodeMultipartReceiveResponse, testDecodeRequestFailBadPldmType)
+TEST(DecodeMultipartReceiveRequest, testDecodeRequestFailBadPldmType)
{
constexpr uint8_t kPldmType = 0xff;
constexpr uint8_t kFlag = PLDM_XFER_FIRST_PART;
@@ -642,7 +642,7 @@
PLDM_ERROR_INVALID_PLDM_TYPE);
}
-TEST(DecodeMultipartReceiveResponse, testDecodeRequestFailBadTransferFlag)
+TEST(DecodeMultipartReceiveRequest, testDecodeRequestFailBadTransferFlag)
{
constexpr uint8_t kPldmType = PLDM_BASE;
constexpr uint8_t kFlag = PLDM_XFER_CURRENT_PART + 0x10;
@@ -674,7 +674,7 @@
PLDM_ERROR_UNEXPECTED_TRANSFER_FLAG_OPERATION);
}
-TEST(DecodeMultipartReceiveResponse, testDecodeRequestFailBadOffset)
+TEST(DecodeMultipartReceiveRequest, testDecodeRequestFailBadOffset)
{
constexpr uint8_t kPldmType = PLDM_BASE;
constexpr uint8_t kFlag = PLDM_XFER_NEXT_PART;
@@ -711,7 +711,7 @@
PLDM_ERROR_INVALID_DATA);
}
-TEST(DecodeMultipartReceiveResponse, testDecodeRequestFailBadHandle)
+TEST(DecodeMultipartReceiveRequest, testDecodeRequestFailBadHandle)
{
constexpr uint8_t kPldmType = PLDM_BASE;
constexpr uint8_t kFlag = PLDM_XFER_NEXT_PART;