Home
last modified time | relevance | path

Searched refs:ScopedChangeUID (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/tests/
Dresolv_test_utils.h65 class ScopedChangeUID {
67 ScopedChangeUID(uid_t testUid) : mTestUid(testUid), mSavedUid(getuid()) { in ScopedChangeUID() function
70 ~ScopedChangeUID() { EXPECT_TRUE(seteuid(mSavedUid) == 0); } in ~ScopedChangeUID()
Dresolv_integration_test.cpp5476 ScopedChangeUID scopedChangeUID(uid); in TEST_F()
6370 ScopedChangeUID scopedChangeUID(uid); in expectDnsWorksForUid()