libpldm: Initially fix test failures on big endian

There are tests of libpldm assigning values directly to the data in pldm
message. In little endian system it's fine, but it cause the test
failure on big endian system.

Fix them by using htoleXX() function when assigning such values.

This commit is done by the below command:

 sed -i -E "/ASSERT|EXPECT/! \
 s/(0x[0-9a-fA-F]{4})([^0-9a-fA-F])/htole16\(\1\)\2/; \
 /ASSERT|EXPECT/! \
 s/(0x[0-9a-fA-F]{8})([^0-9a-fA-F])/htole32\(\1\)\2/" *.cpp

Tested: Verify the tests pass on little endian system.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I35b54d8419d7ea47747eba647ada9361ae11010d
diff --git a/libpldm/tests/libpldm_platform_test.cpp b/libpldm/tests/libpldm_platform_test.cpp
index 11252d6..fb67790 100644
--- a/libpldm/tests/libpldm_platform_test.cpp
+++ b/libpldm/tests/libpldm_platform_test.cpp
@@ -79,7 +79,7 @@
     std::array<uint8_t, hdrSize + PLDM_SET_STATE_EFFECTER_STATES_REQ_BYTES>
         requestMsg{};
 
-    uint16_t effecterId = 0x32;
+    uint16_t effecterId = htole16(0x0032);
     uint8_t compEffecterCnt = 0x2;
 
     std::array<set_effecter_state_field, 8> stateField{};