Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 264617d7 authored by Michael Butler's avatar Michael Butler Committed by Automerger Merge Worker
Browse files

Quick-fail NNAPI VTS test case if driver is dead am: 77c1b623 am: 828b7259 am: 863b6680

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15668776

Change-Id: I4ee20d2246b2b8f2a6711ab165d65e95dbc4b62a
parents a66bac8e 863b6680
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -154,6 +154,8 @@ void Execute(const sp<IDevice>& device, const TestModel& testModel) {
void GeneratedTestBase::SetUp() {
    testing::TestWithParam<GeneratedTestParam>::SetUp();
    ASSERT_NE(kDevice, nullptr);
    const bool deviceIsResponsive = kDevice->ping().isOk();
    ASSERT_TRUE(deviceIsResponsive);
}

std::vector<NamedModel> getNamedModels(const FilterFn& filter) {
+2 −0
Original line number Diff line number Diff line
@@ -81,6 +81,8 @@ void createPreparedModel(const sp<IDevice>& device, const Model& model,
void NeuralnetworksHidlTest::SetUp() {
    testing::TestWithParam<NeuralnetworksHidlTestParam>::SetUp();
    ASSERT_NE(kDevice, nullptr);
    const bool deviceIsResponsive = kDevice->ping().isOk();
    ASSERT_TRUE(deviceIsResponsive);
}

static NamedDevice makeNamedDevice(const std::string& name) {
+2 −0
Original line number Diff line number Diff line
@@ -162,6 +162,8 @@ void Execute(const sp<IDevice>& device, const TestModel& testModel) {
void GeneratedTestBase::SetUp() {
    testing::TestWithParam<GeneratedTestParam>::SetUp();
    ASSERT_NE(kDevice, nullptr);
    const bool deviceIsResponsive = kDevice->ping().isOk();
    ASSERT_TRUE(deviceIsResponsive);
}

std::vector<NamedModel> getNamedModels(const FilterFn& filter) {
+2 −0
Original line number Diff line number Diff line
@@ -84,6 +84,8 @@ void createPreparedModel(const sp<IDevice>& device, const Model& model,
void NeuralnetworksHidlTest::SetUp() {
    testing::TestWithParam<NeuralnetworksHidlTestParam>::SetUp();
    ASSERT_NE(kDevice, nullptr);
    const bool deviceIsResponsive = kDevice->ping().isOk();
    ASSERT_TRUE(deviceIsResponsive);
}

static NamedDevice makeNamedDevice(const std::string& name) {
+2 −0
Original line number Diff line number Diff line
@@ -225,6 +225,8 @@ class CompilationCachingTestBase : public testing::Test {
    void SetUp() override {
        testing::Test::SetUp();
        ASSERT_NE(kDevice.get(), nullptr);
        const bool deviceIsResponsive = kDevice->ping().isOk();
        ASSERT_TRUE(deviceIsResponsive);

        // Create cache directory. The cache directory and a temporary cache file is always created
        // to test the behavior of prepareModelFromCache, even when caching is not supported.
Loading