Searched refs:HexStringToInteger (Results 1 – 4 of 4) sorted by relevance
/external/chromium_org/rlz/lib/ |
D | string_utils_unittest.cc | 28 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 …]
|
D | string_utils.h | 22 int HexStringToInteger(const char* text);
|
D | string_utils.cc | 36 int HexStringToInteger(const char* text) { in HexStringToInteger() function
|
D | rlz_lib.cc | 446 return calculated_crc == HexStringToInteger(checksum.c_str()); in IsPingResponseValid()
|