Lines Matching refs:is_source

205   bool is_source = false;
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));
215 &ip_address, &is_source));
217 EXPECT_TRUE(is_source);
219 &ip_address, &is_source));
221 EXPECT_FALSE(is_source);
226 bool is_source = false;
228 EXPECT_FALSE(reader_.ParsePort("", &port, &is_source));
229 EXPECT_FALSE(reader_.ParsePort("a", &port, &is_source));
230 EXPECT_FALSE(reader_.ParsePort("0", &port, &is_source));
231 EXPECT_FALSE(reader_.ParsePort("sport=", &port, &is_source));
232 EXPECT_FALSE(reader_.ParsePort("sport=a", &port, &is_source));
233 EXPECT_FALSE(reader_.ParsePort("sport=-1", &port, &is_source));
234 EXPECT_FALSE(reader_.ParsePort("sport=65536", &port, &is_source));
235 EXPECT_FALSE(reader_.ParsePort("dport=", &port, &is_source));
236 EXPECT_FALSE(reader_.ParsePort("dport=a", &port, &is_source));
237 EXPECT_FALSE(reader_.ParsePort("dport=-1", &port, &is_source));
238 EXPECT_FALSE(reader_.ParsePort("dport=65536", &port, &is_source));
240 EXPECT_TRUE(reader_.ParsePort("sport=53", &port, &is_source));
242 EXPECT_TRUE(is_source);
243 EXPECT_TRUE(reader_.ParsePort("dport=80", &port, &is_source));
245 EXPECT_FALSE(is_source);