Lines Matching refs:selectedNetId
4389 int selectedNetId; in TEST_P() local
4390 std::tie(isSecureVPN, selectedNetId) = GetParam(); in TEST_P()
4397 switch (selectedNetId) { in TEST_P()
4408 GTEST_LOG_(ERROR) << "unexpected netId:" << selectedNetId; // Should not happen. in TEST_P()
4417 EXPECT_EQ(0, setNetworkForProcess(selectedNetId)); in TEST_P()
4418 expectPacketSentOnNetId(AID_ROOT, selectedNetId, expectedFd, EXPLICITLY_SELECT); in TEST_P()
4423 if (isSecureVPN && selectedNetId != VPN_NETID) { in TEST_P()
4424 EXPECT_EQ(-EPERM, setNetworkForProcess(selectedNetId)); in TEST_P()
4426 EXPECT_EQ(0, setNetworkForProcess(selectedNetId)); in TEST_P()
4427 expectPacketSentOnNetId(TEST_UID3, selectedNetId, expectedFd, EXPLICITLY_SELECT); in TEST_P()
4433 if (selectedNetId == VPN_NETID) { in TEST_P()
4434 EXPECT_EQ(-EPERM, setNetworkForProcess(selectedNetId)); in TEST_P()
4436 EXPECT_EQ(0, setNetworkForProcess(selectedNetId)); in TEST_P()
4437 expectPacketSentOnNetId(TEST_UID1, selectedNetId, expectedFd, EXPLICITLY_SELECT); in TEST_P()
4443 if (isSecureVPN && selectedNetId != VPN_NETID) { in TEST_P()
4444 EXPECT_EQ(-EPERM, setNetworkForProcess(selectedNetId)); in TEST_P()
4446 EXPECT_EQ(0, setNetworkForProcess(selectedNetId)); in TEST_P()
4447 expectPacketSentOnNetId(TEST_UID2, selectedNetId, expectedFd, EXPLICITLY_SELECT); in TEST_P()