Home
last modified time | relevance | path

Searched refs:HexStringToInteger (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/rlz/lib/
Dstring_utils_unittest.cc28 TEST(StringUtilsUnittest, HexStringToInteger) { in TEST() argument
30 EXPECT_EQ(0, rlz_lib::HexStringToInteger(NULL)); in TEST()
33 EXPECT_EQ(0, rlz_lib::HexStringToInteger("")); in TEST()
34 EXPECT_EQ(0, rlz_lib::HexStringToInteger(" ")); in TEST()
35 EXPECT_EQ(0, rlz_lib::HexStringToInteger(" 0x ")); in TEST()
36 EXPECT_EQ(0, rlz_lib::HexStringToInteger(" 0x0 ")); in TEST()
37 EXPECT_EQ(0x12345, rlz_lib::HexStringToInteger("12345")); in TEST()
38 EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger("a34Ed0")); in TEST()
39 EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger("0xa34Ed0")); in TEST()
40 EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger(" 0xa34Ed0")); in TEST()
[all …]
Dstring_utils.h22 int HexStringToInteger(const char* text);
Dstring_utils.cc36 int HexStringToInteger(const char* text) { in HexStringToInteger() function
Drlz_lib.cc446 return calculated_crc == HexStringToInteger(checksum.c_str()); in IsPingResponseValid()