Lines Matching refs:res
69 auto res = isEthernet("not_existing_if"); in TEST_F() local
70 ASSERT_FALSE(res.ok()); in TEST_F()
71 ASSERT_EQ(ENODEV, res.error().code()); in TEST_F()
75 auto res = isEthernet("lo"); in TEST_F() local
76 ASSERT_FALSE(res.ok()); in TEST_F()
77 ASSERT_EQ(EAFNOSUPPORT, res.error().code()); in TEST_F()
83 auto res = isEthernet("wlan0"); in TEST_F() local
84 if (!res.ok() && res.error().code() == ENODEV) return; in TEST_F()
86 ASSERT_RESULT_OK(res); in TEST_F()
87 ASSERT_TRUE(res.value()); in TEST_F()
94 auto res = isEthernet("rmnet_data0"); in TEST_F() local
95 if (!res.ok() && res.error().code() == ENODEV) return; in TEST_F()
97 ASSERT_RESULT_OK(res); in TEST_F()
98 ASSERT_FALSE(res.value()); in TEST_F()