Searched refs:BinderStatusMatcher (Results 1 – 3 of 3) sorted by relevance
27 using android::error::BinderStatusMatcher;55 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()57 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()66 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()77 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()81 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_ARGUMENT))); in TEST_F()90 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()105 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()106 EXPECT_THAT(controller_.updatePackagesForUid(newState), BinderStatusMatcher::isOk()); in TEST_F()121 EXPECT_THAT(controller_.populatePackagesForUids(input), BinderStatusMatcher::isOk()); in TEST_F()[all …]
34 using ::android::error::BinderStatusMatcher;78 IsErrorAnd(BinderStatusMatcher::hasException(EX_SECURITY))); in TEST_F()114 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_STATE))); in TEST_F()124 IsErrorAnd(BinderStatusMatcher::hasException(EX_ILLEGAL_ARGUMENT))); in TEST_F()
28 class BinderStatusMatcher {32 explicit BinderStatusMatcher(binder::Status status) : status_(std::move(status)) {} in BinderStatusMatcher() function34 static BinderStatusMatcher hasException(binder::Status::Exception ex) { in hasException()35 return BinderStatusMatcher(binder::Status::fromExceptionCode(ex)); in hasException()38 static BinderStatusMatcher isOk() { return BinderStatusMatcher(binder::Status::ok()); } in isOk()