socketTag.cpp | 223 testPrintI("setup sock1 and addr via tag"); 224 ASSERT_FALSE(sock1.setup(valid_tag1)) << "socket1 setup failed"; 237 SockInfo sock1; member in class:android::SocketTaggingTest 375 EXPECT_GE(doCtrlCommand("t %d %llu %u", sock1.fd, valid_tag1, fake_uid2), 0); 376 EXPECT_TRUE(sock1.checkTag(valid_tag1, fake_uid2)) << "Tag not found."; 380 EXPECT_TRUE(sock1.checkTag(valid_tag1, fake_uid2)) << "Tag not found"; 382 EXPECT_GE(doCtrlCommand("u %d", sock1.fd), 0); 383 EXPECT_FALSE(sock1.checkTag(valid_tag1, fake_uid2)) << "Tag should not be there"; 395 close(sock1.fd); 396 EXPECT_LE(doCtrlCommand("u %d", sock1.fd), 0) [all...] |