Update VTS tests for executeFenced am: aaa3c24f10
Change-Id: Ieb8f5d319c0d71fd4b33d7a19f289a34e047cba3
This commit is contained in:
commit
be35252727
2 changed files with 9 additions and 14 deletions
|
@ -142,16 +142,14 @@ static void validate(const sp<IPreparedModel>& preparedModel, const std::string&
|
|||
// dispatch
|
||||
{
|
||||
SCOPED_TRACE(message + " [executeFenced]");
|
||||
Return<void> ret = preparedModel->executeFenced(
|
||||
request, {}, MeasureTiming::NO, {}, {},
|
||||
[](ErrorStatus error, const hidl_handle& handle,
|
||||
const sp<IFencedExecutionCallback>& callback) {
|
||||
if (error != ErrorStatus::DEVICE_UNAVAILABLE) {
|
||||
ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, error);
|
||||
}
|
||||
ASSERT_EQ(handle.getNativeHandle(), nullptr);
|
||||
ASSERT_EQ(callback, nullptr);
|
||||
});
|
||||
Return<void> ret =
|
||||
preparedModel->executeFenced(request, {}, MeasureTiming::NO, deadline, {},
|
||||
[](ErrorStatus error, const hidl_handle& handle,
|
||||
const sp<IFencedExecutionCallback>& callback) {
|
||||
ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, error);
|
||||
ASSERT_EQ(handle.getNativeHandle(), nullptr);
|
||||
ASSERT_EQ(callback, nullptr);
|
||||
});
|
||||
ASSERT_TRUE(ret.isOk());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -140,10 +140,7 @@ void validateExecuteFenced(const sp<IPreparedModel>& preparedModel, const Reques
|
|||
request, {hidl_handle(nullptr)}, V1_2::MeasureTiming::NO, {}, {},
|
||||
[](ErrorStatus error, const hidl_handle& handle,
|
||||
const sp<IFencedExecutionCallback>& callback) {
|
||||
// TODO: fix this once sample driver impl is merged.
|
||||
if (error != ErrorStatus::DEVICE_UNAVAILABLE) {
|
||||
ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, error);
|
||||
}
|
||||
ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, error);
|
||||
ASSERT_EQ(handle.getNativeHandle(), nullptr);
|
||||
ASSERT_EQ(callback, nullptr);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue