Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
pldm
/
854e61f2dfd17ad4c08c2cdd4a7a4633c42fd670
/
.
/
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
);
}