socketTag.cpp | 229 testPrintI("setup sock1 and addr via tag"); 230 ASSERT_FALSE(sock1.setup(valid_tag1)) << "socket1 setup failed"; 243 SockInfo sock1; member in class:android::SocketTaggingTest 381 EXPECT_GE(doCtrlCommand("t %d %" PRIu64 " %u", sock1.fd, valid_tag1, fake_uid2), 0); 382 EXPECT_TRUE(sock1.checkTag(valid_tag1, fake_uid2)) << "Tag not found."; 386 EXPECT_TRUE(sock1.checkTag(valid_tag1, fake_uid2)) << "Tag not found"; 388 EXPECT_GE(doCtrlCommand("u %d", sock1.fd), 0); 389 EXPECT_FALSE(sock1.checkTag(valid_tag1, fake_uid2)) << "Tag should not be there"; 401 close(sock1.fd); 402 EXPECT_LE(doCtrlCommand("u %d", sock1.fd), 0) [all...] |