Home
last modified time | relevance | path

Searched refs:is_source (Results 1 – 3 of 3) sorted by relevance

/system/connectivity/shill/
Dconnection_info_reader.cc111 bool is_source = false; in ParseConnectionInfo() local
113 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || !is_source) { in ParseConnectionInfo()
117 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || is_source) { in ParseConnectionInfo()
122 if (!ParsePort(tokens[++index], &port, &is_source) || !is_source) { in ParseConnectionInfo()
126 if (!ParsePort(tokens[++index], &port, &is_source) || is_source) { in ParseConnectionInfo()
138 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || !is_source) { in ParseConnectionInfo()
142 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || is_source) { in ParseConnectionInfo()
147 if (!ParsePort(tokens[++index], &port, &is_source) || !is_source) { in ParseConnectionInfo()
151 if (!ParsePort(tokens[++index], &port, &is_source) || is_source) { in ParseConnectionInfo()
177 const string& input, IPAddress* ip_address, bool* is_source) { in ParseIPAddress() argument
[all …]
Dconnection_info_reader_unittest.cc205 bool is_source = false; in TEST_F() local
207 EXPECT_FALSE(reader_.ParseIPAddress("", &ip_address, &is_source)); in TEST_F()
208 EXPECT_FALSE(reader_.ParseIPAddress("abc", &ip_address, &is_source)); in TEST_F()
209 EXPECT_FALSE(reader_.ParseIPAddress("src=", &ip_address, &is_source)); in TEST_F()
210 EXPECT_FALSE(reader_.ParseIPAddress("src=abc", &ip_address, &is_source)); in TEST_F()
211 EXPECT_FALSE(reader_.ParseIPAddress("dst=", &ip_address, &is_source)); in TEST_F()
212 EXPECT_FALSE(reader_.ParseIPAddress("dst=abc", &ip_address, &is_source)); in TEST_F()
215 &ip_address, &is_source)); in TEST_F()
217 EXPECT_TRUE(is_source); in TEST_F()
219 &ip_address, &is_source)); in TEST_F()
[all …]
Dconnection_info_reader.h60 IPAddress* ip_address, bool* is_source);
61 bool ParsePort(const std::string& input, uint16_t* port, bool* is_source);