Lines Matching refs:condition

136     void checkWithPrivileges(std::function<T()> condition, T privilegedValue, T unprivilegedValue) {  in checkWithPrivileges()  argument
139 ASSERT_EQ(privilegedValue, condition()); in checkWithPrivileges()
143 ASSERT_EQ(privilegedValue, condition()); in checkWithPrivileges()
147 ASSERT_EQ(privilegedValue, condition()); in checkWithPrivileges()
151 ASSERT_EQ(unprivilegedValue, condition()); in checkWithPrivileges()
174 std::function<bool()> condition = [] { in TEST_F() local
178 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges(condition, true, true)); in TEST_F()
202 std::function<status_t()> condition = [=]() { in TEST_F() local
206 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()
211 std::function<status_t()> condition = [=]() { in TEST_F() local
215 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()
220 std::function<status_t()> condition = [=]() { in TEST_F() local
223 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
228 std::function<status_t()> condition = [=]() { in TEST_F() local
231 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
235 std::function<bool()> condition = [=]() { in TEST_F() local
239 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges(condition, true, false)); in TEST_F()
241 condition = [=]() { in TEST_F()
245 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges(condition, true, false)); in TEST_F()
261 std::function<status_t()> condition = [=]() { in TEST_F() local
267 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
273 std::function<status_t()> condition = [=]() { in TEST_F() local
279 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
299 std::function<bool()> condition = [=]() { return sf->authenticateSurfaceTexture(producer); }; in TEST_F() local
301 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges(condition, true, true)); in TEST_F()
351 std::function<status_t()> condition = [=]() { in TEST_F() local
355 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()