Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
pldm
/
37998bf611135c39e423f94bb17cbed1da3fccf5
/
.
/
test
/
libpldm_utils_test.cpp
blob: 242909721c56e4b385fee715a066fb1ca41e8d59 [
file
] [
log
] [
blame
]
#include
<vector>
#include
"libpldm/utils.h"
#include
<gtest/gtest.h>
TEST
(
Crc32
,
CheckSumTest
)
{
const
char
*
password
=
"123456789"
;
auto
checksum
=
crc32
(
password
,
9
);
EXPECT_EQ
(
checksum
,
0xcbf43926
);
}