Lines Matching full:group_name
289 static void check_group(const group* grp, const char* group_name, gid_t gid,
293 EXPECT_STREQ(group_name, grp->gr_name);
298 EXPECT_STREQ(group_name, grp->gr_mem[0]);
305 static void check_getgrgid(const char* group_name, gid_t gid, bool check_groupname) {
310 check_group(grp, group_name, gid, check_groupname);
313 static void check_getgrnam(const char* group_name, gid_t gid, bool check_groupname) {
315 group* grp = getgrnam(group_name);
318 check_group(grp, group_name, gid, check_groupname);
321 static void check_getgrgid_r(const char* group_name, gid_t gid, bool check_groupname) {
331 check_group(grp, group_name, gid, check_groupname);
334 static void check_getgrnam_r(const char* group_name, gid_t gid, bool check_groupname) {
340 int result = getgrnam_r(group_name, &grp_storage, buf, sizeof(buf), &grp);
344 check_group(grp, group_name, gid, check_groupname);
347 static void check_get_group(const char* group_name, gid_t gid, bool check_groupname = true) {
348 check_getgrgid(group_name, gid, check_groupname);
349 check_getgrnam(group_name, gid, check_groupname);
350 check_getgrgid_r(group_name, gid, check_groupname);
351 check_getgrnam_r(group_name, gid, check_groupname);
357 GTEST_LOG_(INFO) << "This test is about gid/group_name translation for Android, which does nothing on libc other than bionic.\n";