Lines Matching refs:is_source

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