Searched refs:ScopedChangeUID (Results 1 – 2 of 2) sorted by relevance
65 class ScopedChangeUID {67 ScopedChangeUID(uid_t testUid) : mTestUid(testUid), mSavedUid(getuid()) { in ScopedChangeUID() function70 ~ScopedChangeUID() { EXPECT_TRUE(seteuid(mSavedUid) == 0); } in ~ScopedChangeUID()
5476 ScopedChangeUID scopedChangeUID(uid); in TEST_F()6370 ScopedChangeUID scopedChangeUID(uid); in expectDnsWorksForUid()