5#include "xfa/fxfa/fxfa_basic.h"
7#include "core/fxcrt/bytestring.h"
8#include "testing/gtest/include/gtest/gtest.h"
12void HashTestCase(uint32_t hash,
const char* str, uint32_t* so_far) {
13 if (hash != 0xffffffffu) {
14 EXPECT_EQ(hash, FX_HashCode_GetAsIfW(str)) << str;
15 EXPECT_LT(*so_far, hash) << hash;
17 EXPECT_NE(hash, FX_HashCode_GetAsIfW(str)) << str;
27#define PCKT____(a, b, c, d, e, f) HashTestCase(a, b, &so_far);
28#include "xfa/fxfa/parser/packets.inc"
35#define ATTR____(a, b, c, d) HashTestCase(a, b, &so_far);
36#include "xfa/fxfa/parser/attributes.inc"
43#define VALUE____(a, b, c) HashTestCase(a, b, &so_far);
44#include "xfa/fxfa/parser/attribute_values.inc"
51#define ELEM____(a, b, c, d) HashTestCase(a, b, &so_far);
52#include "xfa/fxfa/parser/elements.inc"
TEST(FXCRYPT, MD5GenerateEmtpyData)