Lines Matching refs:passwd_file
97 PasswdFile passwd_file(file.path, nullptr); in TEST() local
98 FileUnmapper unmapper(passwd_file); in TEST()
100 FindAndCheckPasswdEntry(&passwd_file, "name", 1, 2, "dir", "shell"); in TEST()
102 EXPECT_FALSE(passwd_file.FindByName("not_name", nullptr)); in TEST()
103 EXPECT_FALSE(passwd_file.FindById(3, nullptr)); in TEST()
153 PasswdFile passwd_file(file.path, nullptr); in TEST() local
154 FileUnmapper unmapper(passwd_file); in TEST()
156 FindAndCheckPasswdEntry(&passwd_file, "first", 1, 2, "dir", "shell"); in TEST()
157 FindAndCheckPasswdEntry(&passwd_file, "middle-ish", 13, 4, "/", "/system/bin/sh"); in TEST()
158 FindAndCheckPasswdEntry(&passwd_file, "last", 29, 4, "last_user_dir", "last_user_shell"); in TEST()
160 EXPECT_FALSE(passwd_file.FindByName("not_name", nullptr)); in TEST()
161 EXPECT_FALSE(passwd_file.FindById(50, nullptr)); in TEST()
213 PasswdFile passwd_file(file.path, "vendor_"); in TEST() local
214 FileUnmapper unmapper(passwd_file); in TEST()
216 EXPECT_FALSE(passwd_file.FindByName("name", nullptr)); in TEST()
217 EXPECT_FALSE(passwd_file.FindById(1, nullptr)); in TEST()
219 FindAndCheckPasswdEntry(&passwd_file, "vendor_name", 3, 4, "dir", "shell"); in TEST()