OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ParseIPAddress
(Results
1 - 6
of
6
) sorted by null
/system/connectivity/shill/
connection_info_reader_unittest.cc
203
TEST_F(ConnectionInfoReaderTest,
ParseIPAddress
) {
207
EXPECT_FALSE(reader_.
ParseIPAddress
("", &ip_address, &is_source));
208
EXPECT_FALSE(reader_.
ParseIPAddress
("abc", &ip_address, &is_source));
209
EXPECT_FALSE(reader_.
ParseIPAddress
("src=", &ip_address, &is_source));
210
EXPECT_FALSE(reader_.
ParseIPAddress
("src=abc", &ip_address, &is_source));
211
EXPECT_FALSE(reader_.
ParseIPAddress
("dst=", &ip_address, &is_source));
212
EXPECT_FALSE(reader_.
ParseIPAddress
("dst=abc", &ip_address, &is_source));
214
EXPECT_TRUE(reader_.
ParseIPAddress
("src=192.168.1.1",
218
EXPECT_TRUE(reader_.
ParseIPAddress
("dst=192.168.1.2",
connection_info_reader.h
48
FRIEND_TEST(ConnectionInfoReaderTest,
ParseIPAddress
);
59
bool
ParseIPAddress
(const std::string& input,
socket_info_reader.h
54
FRIEND_TEST(SocketInfoReaderTest,
ParseIPAddress
);
66
bool
ParseIPAddress
(const std::string& input, IPAddress* ip_address);
socket_info_reader_unittest.cc
287
TEST_F(SocketInfoReaderTest,
ParseIPAddress
) {
290
EXPECT_FALSE(reader_.
ParseIPAddress
("", &ip_address));
291
EXPECT_FALSE(reader_.
ParseIPAddress
("0", &ip_address));
292
EXPECT_FALSE(reader_.
ParseIPAddress
("00", &ip_address));
293
EXPECT_FALSE(reader_.
ParseIPAddress
("0000000Y", &ip_address));
294
EXPECT_FALSE(reader_.
ParseIPAddress
("0000000000000000000000000000000Y",
297
EXPECT_TRUE(reader_.
ParseIPAddress
("00000000", &ip_address));
300
EXPECT_TRUE(reader_.
ParseIPAddress
("0100007F", &ip_address));
303
EXPECT_TRUE(reader_.
ParseIPAddress
("0a01A8c0", &ip_address));
307
EXPECT_TRUE(reader_.
ParseIPAddress
("ffffffff", &ip_address))
[
all
...]
connection_info_reader.cc
113
if (!
ParseIPAddress
(tokens[++index], &ip_address, &is_source) || !is_source) {
117
if (!
ParseIPAddress
(tokens[++index], &ip_address, &is_source) || is_source) {
138
if (!
ParseIPAddress
(tokens[++index], &ip_address, &is_source) || !is_source) {
142
if (!
ParseIPAddress
(tokens[++index], &ip_address, &is_source) || is_source) {
176
bool ConnectionInfoReader::
ParseIPAddress
(
socket_info_reader.cc
139
!
ParseIPAddress
(tokens[0], ip_address) ||
147
bool SocketInfoReader::
ParseIPAddress
(const string& input,
Completed in 66 milliseconds