OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:HexStringToInteger
(Results
1 - 4
of
4
) sorted by null
/external/chromium_org/rlz/lib/
string_utils_unittest.cc
28
TEST(StringUtilsUnittest,
HexStringToInteger
) {
29
rlz_lib::SetExpectedAssertion("
HexStringToInteger
: text is NULL.");
30
EXPECT_EQ(0, rlz_lib::
HexStringToInteger
(NULL));
33
EXPECT_EQ(0, rlz_lib::
HexStringToInteger
(""));
34
EXPECT_EQ(0, rlz_lib::
HexStringToInteger
(" "));
35
EXPECT_EQ(0, rlz_lib::
HexStringToInteger
(" 0x "));
36
EXPECT_EQ(0, rlz_lib::
HexStringToInteger
(" 0x0 "));
37
EXPECT_EQ(0x12345, rlz_lib::
HexStringToInteger
("12345"));
38
EXPECT_EQ(0xa34Ed0, rlz_lib::
HexStringToInteger
("a34Ed0"));
39
EXPECT_EQ(0xa34Ed0, rlz_lib::
HexStringToInteger
("0xa34Ed0"))
[
all
...]
string_utils.h
22
int
HexStringToInteger
(const char* text);
string_utils.cc
36
int
HexStringToInteger
(const char* text) {
38
ASSERT_STRING("
HexStringToInteger
: text is NULL.");
60
ASSERT_STRING("
HexStringToInteger
: text contains non-hex characters.");
rlz_lib.cc
446
return calculated_crc ==
HexStringToInteger
(checksum.c_str());
Completed in 1278 milliseconds