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