Home
last modified time | relevance | path

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

/aosp12/frameworks/native/services/surfaceflinger/tests/
H A DCredentials_test.cpp132 void checkWithPrivileges(std::function<T()> condition, T privilegedValue, T unprivilegedValue) { in checkWithPrivileges() function in android::CredentialsTest
178 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges(condition, true, true)); in TEST_F()
202 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()
211 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()
234 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
242 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
276 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges(condition, true, false)); in TEST_F()
288 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
302 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
360 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()